Ring

Contents

Ring#

zeroheliumkit.src.geometries.Ring(inner_radius: float, outer_radius: float, location: tuple | Point = None, num_edges: int = 100) Polygon[source]#

Returns a ring shape Polygon

Parameters:
  • inner_radius (float) – inner radius of the ring

  • outer_radius (float) – outer radius of the ring

  • location (tuple or Point, optional) – The location of the ring. If provided, the ring will be translated to this location. Defaults to None.

  • num_edges (int, optional) – The number of edges used to approximate the ring. Defaults to 100.

Example

>>> Ring(3, 5)