Skip to content

line2Intersect

line2Intersect(a, b, tolerance?): Point2 | null

Defined in: line2.ts:85

Returns the intersection point of two infinite lines, or null if they are parallel.

The parallel test scales the cross product by both direction lengths, so it is an angular threshold rather than a raw one — rescaling either direction leaves the answer unchanged, which a bare bound on denom would not.

Line2

Line2

number = geometryConfig.defaultAngularTolerance

Dimensionless bound on sin of the angle between the two directions, below which they count as parallel.

Point2 | null