coordinateToRangeAbsoluteDistance MethodStatic
Given a coordinate and pair of range limits, return the smallest distance to the range.
- This is zero for any point inside the range
- This is _EXTREME_POSITIVE if the range limits are inverted
- Otherwise (i.e. x is outside a finite range) the distance to the near endpoint.
coordinateToRangeAbsoluteDistance(x: number, low: number, high: number): number
Parameter | Type | Description |
---|---|---|
x | number | |
low | number | |
high | number |
Returns - number
Defined in
- geometry3d/Range.ts Line 75
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.