normalizeWithLength Method
Return a pair object containing (a) property v which is a unit vector in the direction
of the input and (b) property mag which is the magnitude (length) of the input (instance) prior to normalization.
If the instance (input) is a near zero length the v property of the output is undefined.
normalizeWithLength(result?: Vector3d): object
| Parameter | Type | Description |
|---|---|---|
| result | Vector3d | optional result. |
Defined in
Last Updated: 08 January, 2020