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

Last Updated: 20 June, 2023