Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

normalize

From Quake Wiki

Revision as of 01:02, 25 March 2013 by Necros (talk | contribs) (Created page with "====Syntax:==== <code>vector normalize(vector vec)</code> This function normalizes a vector. ====Parameters:==== :<code>vec</code> - The vector to normalize ====Returns:==== ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Syntax:

vector normalize(vector vec)

This function normalizes a vector.

Parameters:

vec - The vector to normalize

Returns:

An identical vector as vec but with length of 1.