Vector3::unit

From RAGE Multiplayer Wiki
Revision as of 06:06, 31 May 2019 by Micaww (talk | contribs) (Created page with "This function returns a normalized copy of a Vector3- one that has the same direction but with a magnitude of 1. ==Syntax== <pre> vector.unit(); </pre> == Returns == * {{Ra...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function returns a normalized copy of a Vector3- one that has the same direction but with a magnitude of 1.

Syntax

vector.unit();

Returns

  • Vector3 The normalized vector.

See Also