Constructs a new 2D vector.
X component.
Y component.
X component.
Y component.
Shorthand for typing new Vector(0, -1).
Shorthand for typing new Vector(-1, 0).
Shorthand for typing new Vector(1, 1).
Shorthand for typing new Vector(1, 0).
Shorthand for typing new Vector(0, 1).
Shorthand for typing new Vector(0, 0).
Length of this vector.
This vector with a magnitude of 1.
Use of squared value is significantly faster, because the square root calculation is a expensive operation.
Squared length of this vector.
Generated using TypeDoc
Representation of two dimensional vectors and points.