Skip to content

Commit

Permalink
🔨(CommonVecOp): adjust transformation matrix for LCD coords
Browse files Browse the repository at this point in the history
This change negates specific y-coordinates in the transformation matrix to ensure correct visualization in LCD coordinate systems.

Signed-off-by: Benign X <[email protected]>
  • Loading branch information
W-Mai committed Nov 12, 2024
1 parent 722d044 commit 1ba2344
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common_vec_op/visualizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1ba2344

Please sign in to comment.