mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-08-21 14:04:53 +02:00
refactor
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user