point_in_triangle_nd

point_in_triangle_nd#

autoplex.fitting.common.regularization.point_in_triangle_nd(pn, *preg)[source]#

Check if a point is inside a region of hyperplanes in N dimensions.

Make a little convex hull in N-1 D and check this.

Parameters:
  • pn – Point to check (in ND)

  • *preg – List of points defining (in ND) to check against

Return type:

bool