differt.rt.intersection_of_ray_with_plane

differt.rt.intersection_of_ray_with_plane#

intersection_of_ray_with_plane(ray_origin, ray_direction, plane_vertex, plane_normal)[source]#

Return the intersection point between the ray and the (infinite) plane.

Warning

If a ray is parallel to the corresponding plane, then an infinite value is returned, as a result of a division by zero, except for the cases where the ray_origins vertices already lie on the plane, then ray_origins is returned.

Parameters:
Return type:

Float[Array, '*batch 3']

Returns:

Intersection point with the (infinite) plane.