ArcLine

Contents

ArcLine#

zeroheliumkit.src.routing.ArcLine(centerx: float, centery: float, radius: float, start_angle: float, end_angle: float, numsegments: int = 10) LineString[source]#

Returns LineString representing an arc.

Parameters:
  • centerx (float) – center.x of arcline

  • centery (float) – center.y of arcline

  • radius (float) – radius of the arcline

  • start_angle (float) – starting angle

  • end_angle (float) – end angle

  • numsegments (int, optional) – number of the segments. Defaults to 10.

Returns:

A LineString representing the arc.

Return type:

LineString

Example

>>> ArcLine(centerx=0, centery=0, radius=5, start_angle=0, end_angle=180)