TruWorlds

Vector2

Represents a 2D vector with X and Y components.

Fields

X float

The X component of the vector.

Y float

The Y component of the vector.

Functions

Length() Returns float

Calculates the length (magnitude) of the vector.

Returns: The length of the vector.