1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-01 04:20:27 +02:00
This commit is contained in:
Justin Lin
2022-03-10 20:27:14 +08:00
parent fa63d1eec6
commit 5b04d11ac8

View File

@@ -1,6 +1,6 @@
function __to_3_elems_ang_vect(a) =
let(leng = len(a))
leng == 3 ? a :
leng == 2 ? [a.x, a.y, 0] : [a.x, 0, 0];
leng == 2 ? [each a, 0] : [a.x, 0, 0];
function __to_ang_vect(a) = is_num(a) ? [0, 0, a] : __to_3_elems_ang_vect(a);