1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-03-14 19:19:47 +01:00
This commit is contained in:
Justin Lin 2022-03-10 20:19:57 +08:00
parent 84c5ea2d91
commit 20242f5d51

View File

@ -5,9 +5,9 @@ function __m_rotation_q_rotation(a, v) =
half_a = a / 2,
axis = v / norm(v),
s = sin(half_a),
x = s * axis[0],
y = s * axis[1],
z = s * axis[2],
x = s * axis.x,
y = s * axis.y,
z = s * axis.z,
w = cos(half_a),
x2 = x + x,