mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-14 18:54:41 +02:00
refactor
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
function _to_3_elems_translation_vect(v) =
|
function _to_3_elems_translation_vect(v) =
|
||||||
let(leng = len(v))
|
let(leng = len(v))
|
||||||
leng == 3 ? v :
|
leng == 3 ? v :
|
||||||
leng == 2 ? [v[0], v[1], 0] : [v[0], 0, 0];
|
leng == 2 ? [each v, 0] : [v.x, 0, 0];
|
||||||
|
|
||||||
function _to_translation_vect(v) = is_num(v) ? [v, 0, 0] : _to_3_elems_translation_vect(v);
|
function _to_translation_vect(v) = is_num(v) ? [v, 0, 0] : _to_3_elems_translation_vect(v);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user