tryNormalizeInPlace Method

Try to normalize (divide by magnitude), storing the result in place.

tryNormalizeInPlace(smallestMagnitude: numberGeometry.smallFraction): boolean

@returns false if magnitude is too small. In this case the vector is unchanged.

Parameter Type Description
smallestMagnitude number smallest magnitude allowed as divisor.

Returns - boolean

false if magnitude is too small. In this case the vector is unchanged.

Defined in

Last Updated: 17 May, 2024