Scales another vector and adds it to this vector.
The value to add to the X component.
The value to add to the Y component.
The scaling to apply to the input vector.
This instance.
Adds another vector to this vector.
The value to add to the X component.
The value to add to the Y component.
This instance.
Return the components of this vector as an array.
The components of this vector as an array.
Clamps the components of the vector at the given boundary.
The lowest value to allow.
The largest value to allow.
This instance.
Divides the vector by the given scale.
The scaling to apply to the vector.
This instance.
Divides this vector by another vector.
The value to divide the X component with.
The value to divide the Y component with.
This instance.
Returns the dot product between two vectors.
The X component of the other vector.
The Y component of the other vector.
The dot product between the two vectors.
Inverts the direction of the vector.
This instance.
Inverts the vectors scale.
This instance.
Calculates the length of the vector.
The length of the vector.
Multiplies the vector by the given scale.
The scaling to apply to the vector.
This instance.
Multiplies this vector by another vector.
The value to multiply with the X component.
The value to multiply with the Y component.
This instance.
Normalizes the vector.
This instance.
Rotates the vector by the given angle.
The angle in degrees.
This instance.
Sets the vector to new coordinates.
The new X component for the vector.
The new Y component for the vector.
This instance.
Subtracts another vector from this vector.
The value to subtract from the X component.
The value to subtract from the Y component.
This instance.
Static
from
A vector with 2 components, labeled:
X
,Y
.