From c64384c362a06458e1bc674d7c9bc433a4c8ea92 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Mon, 18 Sep 2023 21:47:11 +0100 Subject: [PATCH] Account for reversed offsets in intersection point calculation --- csg/src/plane.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csg/src/plane.rs b/csg/src/plane.rs index bc9db1d..03d0f04 100644 --- a/csg/src/plane.rs +++ b/csg/src/plane.rs @@ -65,7 +65,7 @@ impl PlaneIntersection { let mut vs = vec![]; for idx in 0..3 { let mut matrix = base_matrix; - *(matrix.col_mut(idx)) = -offsets; + *(matrix.col_mut(idx)) = offsets; vs.push(matrix.determinant() / base_det); }