inverseMetricDistanceSquared MethodStatic

Return the inverse of distanceSquared, checking for safe division.

inverseMetricDistanceSquared(distanceSquared: number): undefined | number

@returns 1/distanceSquared if the absolute value of distanceSquared exceeds smallMetricDistanceSquared; otherwise returns undefined.

Parameter Type Description
distanceSquared number  

Returns - undefined | number

1/distanceSquared if the absolute value of distanceSquared exceeds smallMetricDistanceSquared; otherwise returns undefined.

Defined in

Last Updated: 14 November, 2024