Creates a new, empty vec2
a new 2D vector
Creates a new vec2 initialized with the given values
X component
Y component
a new 2D vector
Calculates the length of a vec2
vector to calculate length of
length of a
Calculates the squared length of a vec2
vector to calculate squared length of
squared length of a
Returns a string representation of a vector
string representation of the vector
Adds two vec2's