lineXYUVTransverseIntersection MethodStatic

Intersect two transverse 2D lines.

  • If the lines are parallel and overlap, the returned intersection is of dubious use.

lineXYUVTransverseIntersection(a0: XAndY, aDir: XAndY, b0: XAndY, bDir: XAndY): WritableXAndY | undefined

@returns intersection fractions, x along line A and y along line B; or undefined if no intersection.

@see lineSegmentXYUVOverlapUnbounded, lineSegmentXYUVIntersectionUnbounded

Parameter Type Description
a0 XAndY start point of line A
aDir XAndY direction vector of line A
b0 XAndY start point of line B
bDir XAndY direction vector of line B

Returns - WritableXAndY | undefined

intersection fractions, x along line A and y along line B; or undefined if no intersection.

Defined in

Last Updated: 04 June, 2026