mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-18 04:21:16 +02:00
support number
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
function m_scaling(v) = [
|
||||
[v[0], 0, 0, 0],
|
||||
[0, v[1], 0, 0],
|
||||
[0, 0, v[2], 0],
|
||||
[0, 0, 0, 1]
|
||||
];
|
||||
function m_scaling(s) =
|
||||
let(v = len(s) == 3 ? s : [s, s, s])
|
||||
[
|
||||
[v[0], 0, 0, 0],
|
||||
[0, v[1], 0, 0],
|
||||
[0, 0, v[2], 0],
|
||||
[0, 0, 0, 1]
|
||||
];
|
Reference in New Issue
Block a user