Intersect Module
Types
Type | Description |
A Discriminated Union with the result cases from the first step of a 2D line-line intersection test. |
Functions and values
Function or value |
Description
|
|
|
Calculates the intersection of a finite line with a triangle. Returns Some(Pnt) or None if no intersection was found, or if the input line has near zero length, or or if input triangle has near zero area. This algorithm still returns an intersection even if line and triangle are almost parallel. Since it is using the triple product it is be hard to find an appropriate tolerance for considering lines and triangles parallel based on the volume of the Tetrahedron between them.
|