[AutoTool] fix output transition offset

This commit is contained in:
jan 2026-05-28 21:45:06 -07:00
commit e4a52b2c90
2 changed files with 44 additions and 1 deletions

View file

@ -1014,7 +1014,7 @@ class AutoTool(Tool, metaclass=ABCMeta):
return numpy.zeros(2)
orot = out_transition.our_port.rotation
assert orot is not None
otrans_dxy = rotation_matrix_2d(pi - orot - bend_angle) @ (out_transition.their_port.offset - out_transition.our_port.offset)
otrans_dxy = rotation_matrix_2d(bend_angle - orot - pi) @ (out_transition.their_port.offset - out_transition.our_port.offset)
return otrans_dxy
def planL(