|
@@ -260,7 +260,7 @@ xAxis.z, yAxis.z, zAxis.z, 0,
|
|
|
[link:https://en.wikipedia.org/wiki/Rotation_matrix#Quaternion here].
|
|
|
The rest of the matrix is set to the identity. So, given [page:Quaternion q] = w + xi + yj + zk, the resulting matrix will be:
|
|
|
<code>
|
|
|
-1-2y²-2z² 2xy-2zw 2xz-2yw 0
|
|
|
+1-2y²-2z² 2xy-2zw 2xz+2yw 0
|
|
|
2xy+2zw 1-2x²-2z² 2yz-2xw 0
|
|
|
2xz-2yw 2yz+2xw 1-2x²-2y² 0
|
|
|
0 0 0 1
|