inverseMetricDistance MethodStatic

Compute the inverse of distance, checking for safe division.

inverseMetricDistance(distance: number): undefined | number

@returns 1/distance if the absolute value of distance exceeds smallMetricDistance; otherwise returns undefined.

Parameter Type Description
distance number  

Returns - undefined | number

1/distance if the absolute value of distance exceeds smallMetricDistance; otherwise returns undefined.

Defined in

Last Updated: 21 November, 2024