clipLinearMapToInterval Method

clip this range to a linear half space condition

  • if limitA > limitB the limit space is empty
    • make this range null
    • return false;
  • otherwise (i.e limitA <= limitB)
    • solve a + u * f = limitA' anda + u * f = limitA`
    • if unable to solve (i.e. u near zero), a alone determines whether to (a) leave this interval unchanged or (b) reduce to nothing.
    • the f values are an interval in the space of this Range1d
    • restrict the range to that interval (i.e intersect existing (low,high) with the fraction interval.
    • return true if the range is non-null after the clip.

clipLinearMapToInterval(a: number, u: number, limitA: number, limitB: number): boolean

Parameter Type Description
a number constant of linear map
u number coefficient of linear map
limitA number crossing value, assumed in range relation with limitB
limitB number crossing value, assumed in range relation with limitB

Defined in

Last Updated: 08 January, 2020