Vertex Viewer SDK
    Preparing search index...

    Function distanceToPlane

    • Computes the distance of the rays origin to the given plane. Returns a distance of 0 if the ray is coplanar and returns undefined if the ray does not intersect with the plane.

      Parameters

      • ray: Ray.Ray

        The ray to get the distance for.

      • plane: Plane.Plane

        The plane to compute the distance to.

      Returns number | undefined

      The distance to the plane, or undefined if it cannot be computed.