intersectUnboundedLine Method
Intersect this ray with the unbounded line defined by the given points.
intersectUnboundedLine(linePointA: Readonly<WritableXAndY>, linePointB: Readonly<WritableXAndY>): { cross: number, fraction: number, hasIntersection: boolean }
@returns object with named values:
hasIntersection: whether the intersection exists.fraction: ray parameter of intersection, or 0.0 if!hasIntersection. If the instance is normalized, this is the signed distance along the ray to the intersection point.cross: the 2D cross productthis.direction x (linePointB - linePointA), useful for determining orientation of the line and ray.
| Parameter | Type | Description |
|---|---|---|
| linePointA | Readonly<WritableXAndY> | start of the line |
| linePointB | Readonly<WritableXAndY> | end of the line |
Returns - { cross: number, fraction: number, hasIntersection: boolean }
object with named values:
hasIntersection: whether the intersection exists.fraction: ray parameter of intersection, or 0.0 if!hasIntersection. If the instance is normalized, this is the signed distance along the ray to the intersection point.cross: the 2D cross productthis.direction x (linePointB - linePointA), useful for determining orientation of the line and ray.
Defined in
- geometry3d/Ray2d.ts Line 133
Last Updated: 29 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.