1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 09:14:29 +02:00

use cross

This commit is contained in:
Justin Lin
2022-05-05 08:31:46 +08:00
parent 252bc5738e
commit 659988abe2

View File

@@ -17,5 +17,5 @@ function _m_determinant_sub(matrix, leng, fc) =
function _m_determinant(matrix) =
let(leng = len(matrix))
leng == 2 ? matrix[0][0] * matrix[1][1] - matrix[1][0] * matrix[0][1] :
leng == 2 ? cross(matrix[0], matrix[1]) :
sum([for(fc = [0:leng - 1]) _m_determinant_sub(matrix, leng, fc)]);