mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-14 02:34:12 +02:00
if a== 0 do_noting
This commit is contained in:
@@ -78,4 +78,9 @@ function _xyz_rotation(a) =
|
||||
_m_zRotation(ang[2]) * _m_yRotation(ang[1]) * _m_xRotation(ang[0]);
|
||||
|
||||
function m_rotation(a, v) =
|
||||
v == undef ? _xyz_rotation(a) : _q_rotation(a, v);
|
||||
a == 0 ? [
|
||||
[1, 0, 0, 0],
|
||||
[0, 1, 0, 0],
|
||||
[0, 0, 1, 0],
|
||||
[0, 0, 0, 1]
|
||||
] : (v == undef ? _xyz_rotation(a) : _q_rotation(a, v));
|
Reference in New Issue
Block a user