differt.geometry.triangle_contains_vertex_assuming_inside_same_plane#
- triangle_contains_vertex_assuming_inside_same_plane(triangle_vertices, vertex)[source]#
Return whether the triangle contains the corresponding vertex, assuming the vertex lies in the same plane as the triangle.
This is especially useful when combined with the
image_method, as the path returned will also lie in the same plane as the mirror, but may be outside of the actual reflector, e.g., a triangular surface.- Parameters:
triangle_vertices (
Float[ArrayLike, '*#batch 3 3']) – Triangle vertices.vertex (
Float[ArrayLike, '*#batch 3']) – Vertex that will be checked.
- Return type:
- Returns:
Whether the vertex is inside the triangle.