intersectLineSegmentLineSegment
See source codeFind the intersection between a line segment and a line segment.
function intersectLineSegmentLineSegment(
a1: VecLike,
a2: VecLike,
b1: VecLike,
b2: VecLike
): null | Vec
Parameters
Name | Description |
---|---|
| The first segment's first point. |
| The first segment's second point. |
| The second segment's first point. |
| The second segment's second point. |
Returns
null | Vec
Prev
intersectLineSegmentCircleNext
intersectLineSegmentPolygon