differt.geometry.triangle_contains_vertex_assuming_inside_same_plane

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:
Return type:

Bool[Array, '*#batch']

Returns:

Whether the vertex is inside the triangle.