1
0
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:
Justin Lin
2019-05-13 08:27:02 +08:00
parent 48e52fa48b
commit 6fbe42ba8f

View File

@@ -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));