correctSmallMetricDistance MethodStatic
Correct distance
to zero if undefined or smaller than metric tolerance. Otherwise return it unchanged.
correctSmallMetricDistance(distance: undefined | number, replacement: number = 0.0): number
Parameter | Type | Description |
---|---|---|
distance | undefined | number | |
replacement | number |
Returns - number
Defined in
- Geometry.ts Line 249
Last Updated: 30 November, 2023