create a Vector 2D Object
Return a new vector sum of this and another
Return the angle in radians between two vectors
Clone a Vec2
a fresh Vec2
Return the determinant of this and another vector
return the distance between this point and another
return the squared distance between this point and another
Return a new vector quotient of this and another
Return the dot product of this and another vector
Compare to a vector
Return the length/norm/magnitude of this vector
Return the squared length of this vector
Linear interpolation
Return a new vector product of this and another
Return a new vector of length 1 and of same direction.
Return a new vector difference of this and another
Return a new vector of length n and of same direction.
Return a fresh vector with the same coordinates.
Construct a Vec2 from an arbitrary object
Return a fresh null vector
Construct a Vec2 with both components equal
value of the components
Construct a Vec2 pointing toward x+
Construct a Vec2 pointing toward y+
Generated using TypeDoc
Vec2 - 2D vector class