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
anda + 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.
- Solve
clipLinearMapToInterval(a: number, u: number, limitA: number, limitB: number): boolean
Returns - boolean
Defined in
- geometry3d/Range.ts Line 1397
Last Updated: 07 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.