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_originsvertices already lie on the plane, thenray_originsis returned.- Parameters:
ray_origin (
Float[ArrayLike, '*#batch 3']) – Origin vertex.ray_direction (
Float[ArrayLike, '*#batch 3']) – Ray direction. The ray end should be equal toray_origin + ray_direction.plane_vertex (
Float[ArrayLike, '*#batch 3']) – Plane vertex. For each plane, any vertex on this plane can be used.plane_normal (
Float[ArrayLike, '*#batch 3']) – Plane normal, where each normal has a unit length and is perpendicular to the corresponding plane.
- Return type:
- Returns:
Intersection point with the (infinite) plane.