vec3.normalise: Difference between revisions

From GTA Connected
Jump to navigation Jump to search
m (Mex moved page Vec3.normalise to vec3.normalise)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
|parameters = void
|parameters = void
|returnTypes = float
|returnTypes = float
|usage = fetch the normalised value of the 3D vector
|usage = 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)
|returnInfo = a floating-point number representing the normalised 3D vector
|returnInfo = a floating-point number representing the length of the 3D vector
|returnFail1 = float 0.0
|returnFail1 = float 0.0
}}
}}

Latest revision as of 12:26, 24 July 2022

Method Server and Client icon-iii.png icon-vc.png icon-sa.png icon-iv.png 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.