Member | Description | Type |
x | X-coordinate | float |
y | Y-coordinate | float |
Vector2()
Constructor.
Vector2(const Vector2& Other)
Constructor.
Vector2(float X, float Y)
Constructor.
void Set(float X, float Y)
Set values.
void Add(Vector2& Other)
Add values of other vector to this.
void Sub(Vector2& Other)
Subtract values of other vector to this.
void Blend(Vector2& Other, float Value)
Do a linear blend between this vector an another.
float SquareLength()
Returns square length of this vector.
float Length()
Returns length of this vector.
float Dot(Vector2& Other)
Calculates dot product.
float Cross(Vector2& Other)
Cross this vector with another.
void Normalize()
Normalize this vector.
Vector2@ Normalized()
Returns normalized version of this vector.
string@ AsString()
Returns this vector as string ("x, y)