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