1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-19 04:51:26 +02:00

refactor: vector multi

This commit is contained in:
Justin Lin
2022-04-16 13:50:29 +08:00
parent 07343e9e37
commit 1da331441a

View File

@@ -3,5 +3,5 @@ function angle_between_ccw_2d(v1, v2) =
a >= 0 ? a : a + 360;
function angle_between_ccw_3d(v1, v2) =
let(a = acos(v1 * v2 / (norm(v1) * norm(v2))))
let(a = acos(v1 * v2 / sqrt(v1 * v1 * v2 * v2)))
a >= 0 ? a : a + 360;