1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 14:04:53 +02: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, half_a = a / 2,
axis = v / norm(v), axis = v / norm(v),
s = sin(half_a), s = sin(half_a),
x = s * axis[0], x = s * axis.x,
y = s * axis[1], y = s * axis.y,
z = s * axis[2], z = s * axis.z,
w = cos(half_a), w = cos(half_a),
x2 = x + x, x2 = x + x,