jakke-graphics-ts
    Preparing search index...

    Function getIntersectionOnPlaneZ

    • Calculates the intersection point of a line segment defined by two 3D vertices (p0 and p1) with a plane parallel to the XY plane at a given Z coordinate.

      Parameters

      • p0: Vertex3d

        The starting vertex of the line segment.

      • p1: Vertex3d

        The ending vertex of the line segment.

      • z: number

        The Z coordinate of the plane to intersect with.

      Returns undefined | Vertex3d

      The intersection vertex on the plane at Z, or undefined if the line is parallel to the plane.