differt.rt.intersection_of_rays_with_planes

differt.rt.intersection_of_rays_with_planes#

intersection_of_rays_with_planes(ray_origins, ray_directions, plane_vertices, plane_normals)[source]#

Return the intersection points between rays and (infinite) planes.

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:

An array of intersection vertices.