1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-02-24 01:22:27 +01:00
This commit is contained in:
Justin Lin 2020-01-11 14:08:58 +08:00
parent 943498700c
commit d3618e968f

View File

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