normalize

fun normalize(): Vec2

Normalizes the current instance vector to length 1 and returns this.

Return

Returns the normalized version of the current instance vector.