Get the magnitude of the vector
The magnitude of the vector
Copy the target vector properties
The vector to copy from
Get the distance with another vector
The vector to compare
The magnitude of the distance
Compare if two vector are equals
The vector to compare
True if the vectors are equals, false if not
StaticaddStaticceilStaticcrossStaticdotStaticfloorStaticnormalStaticroundStaticscaleStaticsubtractStaticunit
Represents a two-dimensional vector with x and y components.
Provides static methods for common vector operations like addition, subtraction, scaling, dot product, cross product, normalization and more.
Used throughout the engine for storing 2D positions, directions, velocities and other vector quantities.
Example