Vec2:normalize

Edit

Adjusts the values in the vector so that its direction stays the same but its length becomes 1.

self = Vec2:normalize()

Arguments

None

Returns

NameTypeDescription
selfVec2 The normalized vector.

See also