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
- Geometry.ts Line 335
Last Updated: 28 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.