2ī¸âŖVector2
Built-in Vector2 library.
Properties:
x
float
X member of the Vector
y
float
Y member of the Vector
Static Functions:
Vector2
Vector2(x: float, y: float)
: Vector2
x
float
X member of the Vector
y
float
Y member of the Vector
Creates a new Vector2 object.
Functions:
.Add
Vector2_Object.Add(other: Vector2)
other
Vector2
Other Vector
Adds a Vector2 to this Vector2 object.
.Subtract
Vector2_Object.Subtract(other: Vector2)
other
Vector2
Other Vector
Subtracts this Vector2 object with the specified Vector2.
.Multiply
Vector2_Object.Multiply(value: float)
value
float
Multiply value
Multiplies this Vector2 object by the specified value.
.Divide
Vector2_Object.Divide(value: float)
value
float
Divide value
Divides this Vector2 object by the specified value.
.Equals
Vector2_Object.Equals(other: Vector2)
other
Vector2
Other Vector
Compares two Vector2 objects for equality.
.Length
Vector2_Object.Length()
: float
Gets the length of this Vector2 object.
.Normalize
Vector2_Object.Normalize()
Normalizes this Vector2 object.
.DistTo
Vector2_Object.DistTo(other: Vector2)
: float
other
Vector2
Other Vector
Gets the length between the two Vector2 objects.
Last updated