rangeToRangeAbsoluteDistance MethodStatic

Return the min absolute distance from any point of [lowA,highA]' to any point of [lowB,highB]'.

  • Both low,high pairs have order expectations: The condition high < low means null interval.
  • If there is interval overlap, the distance is zero.

rangeToRangeAbsoluteDistance(lowA: number, highA: number, lowB: number, highB: number): number

Parameter Type Description
lowA number low of interval A
highA number high of interval A
lowB number low of interval B
highB number high of interval B

Returns - number

Defined in

Last Updated: 11 June, 2024