Vec2
Constructors
Properties
Functions
Computes the distance from this vector to another vector.
Computes the squared distance from this vector to a specified vector. This is equivalent to squaring the result of distanceTo but is potentially much more efficient.
Subtracts a specified vector from this vector.
Multiplies this vector by a 3x3 matrix. The multiplication is performed with an implicit Z component of 1. The resultant Z component of the product is then divided through the X and Y components.
Adds a specified vector to this vector.
Multiplies this vector by a scalar.
Copies this vector's components to the specified single precision array. The result is compatible with GLSL uniform vectors, and can be passed to the function glUniform2fv.
Creates new vector which has components with opposite sign to the vector.