normalize_anchors

normalize_anchors#

zeroheliumkit.src.routing.normalize_anchors(anchor1: Anchor, anchor2: Anchor) Anchor[source]#
Returns normalizied anchor:

anchor1 moves to (0,0) and rotates to dir=0 and anchor2 transforms accordingly.

Parameters:
  • anchor1 (Anchor) – first anchor

  • anchor2 (Anchor) – second anchor

Returns:

Normalized anchor with coordinates (0,0) and direction 0.

Return type:

Anchor