Vec2.Normalized

Vec2 Normalized()

   
RETURNS: Vec2 The normalized (length of 1) vector!

Creates a normalized vector (vector with a length of 1) from the current vector. Will not work properly if the vector has a length of zero.