Bidimentional Vector
Computes the lenght of the vector
Static
A default vec2 facing down
A default vec2 facing left
A default vec2 facing right
A default vec2 facing up
Computes the dot product between this vector and another one
the other vector to use for the computation
the dot product between the vectors
Returns a new vec2 negated from this one.
Returns a new vec2 from this one normalized
Multiplies this vector in place by a scalar value.
Chainable this
Negates the current vector in place
Reflects this vector in place with respect to a given normal.
Constructs a new vec2 from another one.
the other vec2 to construct a new one from
a new vec2
Bidimentional Vector