intersectRay3d Method
Compute the intersection of a line (parameterized as a ray) with the plane of this triangle.
intersectRay3d(ray: Ray3d, result?: TriangleLocationDetail): TriangleLocationDetail
see BarycentricTriangle.pointToFraction
| Parameter | Type | Description |
|---|---|---|
| ray | Ray3d | infinite line to intersect, as a ray |
| result | TriangleLocationDetail | optional pre-allocated object to fill and return |
Returns - TriangleLocationDetail
details d of the line-plane intersection d.point:
d.isValidreturns true if and only if the line intersects the plane.d.classifycan be used to determine where the intersection lies with respect to the triangle.d.ais the intersection parameter. Ifd.a>= 0, the ray intersects the plane of the triangle.
Defined in
- geometry3d/BarycentricTriangle.ts Line 397
Last Updated: 29 September, 2023