is_point_in_triangle

compas.geometry.is_point_in_triangle(point, triangle, tol=None)[source]

Determine if a point is in the interior of a triangle.

Parameters:
point[float, float, float] | compas.geometry.Point

A point.

triangle[point, point, point]

A triangle.

Returns:
bool

True if the point is in inside the triangle. False otherwise.