tryNormalizeInPlace Method
Try to normalize (divide by magnitude), storing the result in place.
tryNormalizeInPlace(smallestMagnitude: number = Geometry.smallMetricDistance): boolean
Parameter | Type | Description |
---|---|---|
smallestMagnitude | number | smallest magnitude allowed as divisor. |
Returns - false if magnitude is too small. In this case the vector is unchanged.
Defined in
Last Updated: 08 January, 2020