lineSegment2dXYTransverseIntersectionUnbounded MethodStatic

Return true if lines (a0,a1) to (b0, b1) have a simple intersection. Return the fractional (not xy) coordinates in result.x, result.y.

lineSegment2dXYTransverseIntersectionUnbounded(a0: Readonly<WritableXAndY>, a1: Readonly<WritableXAndY>, b0: Readonly<WritableXAndY>, b1: Readonly<WritableXAndY>, result: Vector2d): boolean

Parameter Type Description
a0 Readonly<WritableXAndY> start point of line A
a1 Readonly<WritableXAndY> end point of line A
b0 Readonly<WritableXAndY> start point of line B
b1 Readonly<WritableXAndY> end point of line B
result Vector2d vector to receive fractional coordinates of intersection: result.x is fraction on line A, result.y is
fraction on line B.

Returns - boolean

Defined in

Last Updated: 24 October, 2025