X component.
Y component.
Angle of the vector in radians.
Ceil both components.
Return a new Vec2 copy of this vector.
Floor both components.
Calculate length of the vector.
Calculate squared length of the vector.
Negate both components.
Scale vector to unit length (length of 1).
Rotate the vector 90 degrees counter-clockwise.
Rotate the vector by an angle in radians.
Round both components.
Multiply components by a scalar.
Set vector components.
2D vector class for position, velocity, and size calculations.