Skip to main content

segment_triangle

Function segment_triangle 

Source
pub fn segment_triangle(
    p: [f64; 3],
    q: [f64; 3],
    a: [f64; 3],
    b: [f64; 3],
    c: [f64; 3],
) -> Option<TriangleHit>
Expand description

Segment-triangle intersection: the hit if the segment p-q reaches the triangle.