jakke-graphics-ts
    Preparing search index...

    Function getCollisionLineWithTriangleEdges

    • Computes the intersection points between a given line and the edges of a triangle.

      For each edge of the triangle, checks if the line intersects it, and collects all intersection points. The resulting intersection points are sorted along the line according to their parameter t.

      Parameters

      • line: Line

        The line to test for intersection with the triangle edges.

      • triangle: Triangle

        The triangle whose edges are tested for intersection.

      Returns { p: Vertex3d; t: number }[]

      An array of objects, each containing:

      • t: The parameter value along the line where the intersection occurs.
      • p: The intersection point as a Vertex3d.