make_bezier_line

make_bezier_line#

zeroheliumkit.src.routing.make_bezier_line(a1: Anchor, a2: Anchor, num_segments: int = 20, extension_fraction: float = 0.1, depth_factor: float = 3) LineString[source]#

Returns a Bezier routing LineString.

Parameters:
  • a1 (Anchor) – The first anchor.

  • a2 (Anchor) – The second anchor.

  • num_segments (int, optional) – The number of segments in the arcline. Defaults to 10.

  • extension_fraction (float, optional) – The fraction of the length between a1 and a2 excluded from construction of bezier curve. Defaults to 0.1. Choose betweer 0 and 1.

  • depth_factor (float, optional) – The factor to control the depth of the bezier curve. Defaults to 3. Choose between (2, 4).

Returns:

A Bezier curve LineString between two anchors.

Return type:

LineString