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.
ray
plane
undefined
The ray to get the distance for.
The plane to compute the distance to.
The distance to the plane, or undefined if it cannot be computed.
Computes the distance of the
rays origin to the givenplane. Returns a distance of 0 if the ray is coplanar and returnsundefinedif the ray does not intersect with the plane.