Vector2 class

Represents 2D points and vectors.

Constructors

constructor(self)
constructor(self, x: float, y: float)

Properties

readonly length float

Returns the length of this vector.

readonly normalized Vector2

Returns a copy of this vector with length 1.

readonly sqr_length float

Returns the squared length of this vector.

readonly x float
readonly y float