Returns the length of this vector.
The length is calculated by the square root of (x * x + y * y)
Returns a copy of this vector with length 1
.
Returns the squared length of this vector.
If you use vector lengths to compare distances, squared lengths are more performant and preferred to use.
Shorthand for writing new Vector2(1,0)
.
Shorthand for writing new Vector2(0,1)
.
Shorthand for writing new Vector2(1,1)
.
Shorthand for writing new Vector2(0,0)
.
Returns true
if this vector components equal v
.
vector to compare this vector against.
Represents 2D points and vectors.