correctSmallMetricDistance MethodStatic
Correct a small distance.
correctSmallMetricDistance(distance: number, replacement: number = 0.0): number
@returns distance if it is defined and has absolute value greater than smallMetricDistance;
otherwise returns replacement
| Parameter | Type | Description |
|---|---|---|
| distance | number | metric value to test |
| replacement | number | value to return if distance is too small. Default is zero. |
Returns - number
distance if it is defined and has absolute value greater than smallMetricDistance;
otherwise returns replacement
Defined in
- Geometry.ts Line 311
Last Updated: 28 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.