1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 08:44:20 +02:00
This commit is contained in:
Justin Lin
2022-03-01 10:02:42 +08:00
parent 17fcdbb92e
commit 1d7d45e3ed

View File

@@ -1,5 +1,5 @@
function angle_between_ccw_2d(v1, v2) =
let(a = atan2(v1.x * v2.y - v1.y * v2.x, v1 * v2))
let(a = atan2(cross(v1, v2), v1 * v2))
a >= 0 ? a : a + 360;
function angle_between_ccw_3d(v1, v2) =