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_originsvertices already lie on the plane, thenray_originsis returned.- Parameters:
ray_origins (
Float[ArrayLike, '*#batch 3']) – An array of origin vertices.ray_directions (
Float[ArrayLike, '*#batch 3']) – An array of ray directions. The ray ends should be equal toray_origins + ray_directions.plane_vertices (
Float[ArrayLike, '*#batch 3']) – An array of plane vertices. For each plane, any vertex on this plane can be used.plane_normals (
Float[ArrayLike, '*#batch 3']) – an array of plane normals, where each normal has a unit length and is perpendicular to the corresponding plane.
- Return type:
- Returns:
An array of intersection vertices.