Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!
normalize
From Quake Wiki
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.