is_point_in_triangle_xy

compas.geometry.is_point_in_triangle_xy(point, triangle, colinear=False)[source]

Determine if a point is in the interior of a triangle lying on the XY-plane.

Parameters
  • point (sequence of float) – XY(Z) coordinates of a point.

  • triangle (sequence) – XY(Z) coordinates of the corners of the triangle.

  • colinear (bool, optional) – Allow points to be colinear. Default is False.

Returns

boolTrue if the point is in the convex polygon. False otherwise.