From 1b79cd6f457562595c5052f5b6f923f85c0ab93f Mon Sep 17 00:00:00 2001 From: jan Date: Thu, 13 Nov 2025 12:58:05 -0800 Subject: [PATCH] fixup! [AutoTool] Add first pass for AutoTool --- masque/builder/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/masque/builder/tools.py b/masque/builder/tools.py index b771eac..04fb18e 100644 --- a/masque/builder/tools.py +++ b/masque/builder/tools.py @@ -506,7 +506,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(-orot + bend_angle) @ (out_transition.their_port.offset - out_transition.our_port.offset) + otrans_dxy = rotation_matrix_2d(pi - orot - bend_angle) @ (out_transition.their_port.offset - out_transition.our_port.offset) return otrans_dxy def planL(