Polygon.is_inside

Polygon.is_inside(point: tuple[ndarray, ndarray], for_all: bool = True) bool[source]

Checks if a given point is inside the C-shape.

Parameters:
  • point (tuple[np.ndarray|float, np.ndarray|float]) – A tuple representing the coordinates of the point (x, y).

  • delat (float) – addtional space bewteen the point and the trace

  • for_all (bool) – If False return a array of bool for each point else return only one bool using all, by default True

Returns:

True if the point is inside the C-shape, False otherwise.

Return type:

bool | np.ndarray[bool]