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