Adds the scalar value s to the vector's x and y components.
Clones the instance.
Returns the size of the 2-dimensional cross product of the vector and v.
Divides the vector by the scalar value s.
Compares the vector to v, and returns true if they are approximately equal.
Returns the vector's length.
Returns the vector's squared length.
Calculates the linear interpolation (lerp) between the current value and v, using a as the interpolation factor, then updates the vector's value to the result.
The interpolation factor, specified as a number between [0, 1].
Multiplies the vector by the scalar value s.
Negates the vector's value.
Normalizes the vector's value.
Sets the vector's component values to those specified in x and y.
Subtracts the scalar value s from the vector's x and y components.
A 2-dimensional vector.
Methods that manipulate values are generally destructive. To preserve the original values, explicitly call
clone()to create a duplicate instance.