kmath
0.3.1-dev-RC
common
kmath-geometry
/
space.kscience.kmath.geometry
/
toRotationMatrix
to
Rotation
Matrix
fun
Quaternion
.
toRotationMatrix
(
linearSpace
:
LinearSpace
<
Double
,
*
>
=
DoubleField.linearSpace
)
:
Matrix
<
Double
>
(
source
)
Convert a
Quaternion
to a rotation matrix