Ellipse.get_point_inside

Ellipse.get_point_inside(n_pts: int = 1, delta: float = 0) ndarray[source]

Draw random points inside the ellipse.

Parameters:
  • n_pts (int, optional) – Number of points to generate.

  • delta (float, optional) – Minimum distance to keep from the boundary.

Returns:

Array of sampled points of shape (n_pts, 2).

Return type:

np.ndarray