clampDirectedTo01 Method
- On input, (f0,f1) is a (directed) segment.
- On output, it is restricted to (0,1) while maintaining direction
- If the clip leaves nothing, leave this segment alone and return false.
- If the clip leaves something, update this segment and return true.
clampDirectedTo01(clamp0: booleantrue, clamp1: booleantrue, allowSingleton: booleanfalse): boolean
@returns whether this interval was clipped
Returns - boolean
whether this interval was clipped
Defined in
- geometry3d/Segment1d.ts Line 156
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.