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 336
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.