normalize3
Get the normalized form of a 3-dimensional vector.
Signatures
- Paramate.Math3D.normalize3( a )
Details
The function normalizes a 3-dimensional vector and returns the result: a / || a ||, if the vector has a non-zero length.
Parameters
- a
-
A vector of type [<number>, <number>, <number>].
Return value
The normalized form of the vector, if the vector has a non-zero length, or the original vector.