Ellipse.get_point_inside

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

Returns n points coordinate randomly picked inside the shape

Parameters:
  • n_pts (int, optional) – number of points to generate, by default 0

  • delta (float, optional) – distance with the shape perimeter, by default 0

Returns:

array, of dimension (n_pts, 2), containing the coordinate of y, z-coorinates of the generated point

Return type:

np.ndarray