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

Last Updated: 30 November, 2023