mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-07 23:37:13 +02:00
refactor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
function __m_scaling_to_3_elems_scaling_vect(s) =
|
||||
let(leng = len(s))
|
||||
leng == 3 ? s :
|
||||
leng == 2 ? [s[0], s[1], 1] : [s[0], 1, 1];
|
||||
leng == 2 ? [each s, 1] : [s.x, 1, 1];
|
||||
|
||||
function __m_scaling_to_scaling_vect(s) = is_num(s) ? [s, s, s] : __m_scaling_to_3_elems_scaling_vect(s);
|
||||
|
||||
|
Reference in New Issue
Block a user