clipSegmentToCCWTriangleXY MethodStatic
Clip an interval of a line segment to a triangle.
- Triangle is assumed CCW
clipSegmentToCCWTriangleXY(pointA: Readonly<WritableXAndY>, pointB: Readonly<WritableXAndY>, pointC: Readonly<WritableXAndY>, segment0: Readonly<WritableXAndY>, segment1: Readonly<WritableXAndY>, interval: Range1d, absoluteTolerance: number1.0e-14): void
Parameter | Type | Description |
---|---|---|
pointA | Readonly<WritableXAndY> | point of triangle. |
pointB | Readonly<WritableXAndY> | point of triangle. |
pointC | Readonly<WritableXAndY> | point of triangle. |
segment0 | Readonly<WritableXAndY> | start of segment |
segment1 | Readonly<WritableXAndY> | end of segment |
interval | Range1d | Pre-initialized interval of live part of segment |
absoluteTolerance | number | absolute tolerance for begin "on a line" |
Returns - void
Defined in
- clipping/ClipUtils.ts Line 861
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.