1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 01:04:07 +02:00
This commit is contained in:
Justin Lin
2022-04-14 15:57:56 +08:00
parent 6250cce455
commit 42f4c7eafd

View File

@@ -11,6 +11,6 @@
use <_impl/_angle_between_impl.scad>;
function angle_between(vt1, vt2, ccw = false) =
!ccw ? acos((vt1 * vt2) / (norm(vt1) * norm(vt2))) :
!ccw ? acos((vt1 * vt2) / sqrt((vt1 * vt1) * (vt2 * vt2))) :
len(vt1) == 2 ? angle_between_ccw_2d(vt1, vt2) :
angle_between_ccw_3d(vt1, vt2);