mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-03-14 02:59:42 +01:00
refactor
This commit is contained in:
parent
84c5ea2d91
commit
20242f5d51
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user