deepof.utils._is_point_inside_numba

deepof.utils._is_point_inside_numba(x: float, y: float, polygon: array) bool

This function was generated by Perplexity.ai Check if a point is inside a polygon using the ray casting algorithm.

Parameters:
  • x (float) – The x-coordinate of the point.

  • y (float) – The y-coordinate of the point.

  • polygon (np.ndarray) – An array of shape (N, 2) containing the coordinates of the polygon vertices.

Returns:

True if the point is inside the polygon, False otherwise.

Return type:

bool