normalize

final static Vector2D normalize(Vector2D $self)

Normalizes the vector to length 1 - making unit vector

Return

Vector2D