vec3.normalise
Jump to navigation
Jump to search
Method
Server and Client
Online and Offline
Available since Server 1.0.0, Client 1.0.0
float vec3.normalise(void)
The vec3.normalise method is used to normalise the 3D vector, updating it's X, Y, and Z values, and then returns the length of the 3D vector (because the length was calculated in the normalise code, and may prevent scripts from recalculating it unnecessarily).
Parameters
void | This method doesn't take any parameters. |
Return
float | A floating-point number representing the length of the 3D vector. |
Types
Shared
Vec3
Notes
There aren't any notes for this method.
Examples
There aren't any examples for this method.
Compatibility
There isn't any compatibility information for this method.