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 for limitA <= limitB:
    • Solve a + u * fA = limitA and a + u * fB = limitB.
    • If unable to solve (i.e. u near zero), a alone determines whether to leave this interval unchanged or reduce to null.
    • Form an interval from the solution {fA, fB}.
    • Clip this instance to the solution 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

Returns - boolean

Defined in

Last Updated: 07 October, 2025