From 1ba2344a59b14b07c610f71f6df299adbfc35044 Mon Sep 17 00:00:00 2001 From: Benign X <1341398182@qq.com> Date: Wed, 13 Nov 2024 02:26:21 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8(CommonVecOp):=20adjust=20transform?= =?UTF-8?q?ation=20matrix=20for=20LCD=20coords?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change negates specific y-coordinates in the transformation matrix to ensure correct visualization in LCD coordinate systems. Signed-off-by: Benign X <1341398182@qq.com> --- src/common_vec_op/visualizer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/common_vec_op/visualizer.rs b/src/common_vec_op/visualizer.rs index f1c0e64..748efb9 100644 --- a/src/common_vec_op/visualizer.rs +++ b/src/common_vec_op/visualizer.rs @@ -26,7 +26,9 @@ impl IVisualizer for CommonVecVisualizer { ) { let mut trans_matrix = self.t; if lcd_coords { + trans_matrix[0][1] = trans_matrix[0][1].neg(); trans_matrix[1][1] = trans_matrix[1][1].neg(); + trans_matrix[2][1] = trans_matrix[2][1].neg(); } let plot = Plot::new("plot") .data_aspect(1.0)