Account for reversed offsets in intersection point calculation

This commit is contained in:
Jarrod Doyle 2023-09-18 21:47:11 +01:00
parent dafdbaf319
commit c64384c362
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ impl PlaneIntersection {
let mut vs = vec![]; let mut vs = vec![];
for idx in 0..3 { for idx in 0..3 {
let mut matrix = base_matrix; let mut matrix = base_matrix;
*(matrix.col_mut(idx)) = -offsets; *(matrix.col_mut(idx)) = offsets;
vs.push(matrix.determinant() / base_det); vs.push(matrix.determinant() / base_det);
} }