henry2004y / Vlasiator.jl

Data processor for Vlasiator
https://henry2004y.github.io/Vlasiator.jl/stable/
MIT License
6 stars 4 forks source link

Rotation matrix to quaternion? #161

Closed henry2004y closed 4 months ago

henry2004y commented 8 months ago

https://github.com/henry2004y/Vlasiator.jl/blob/bab9edf873c48b64fe12a14377d322e3436693b0/src/utility/rotation.jl#L40

In computer vision, it has been proved that quaterion is both more accurate and computationally cheaper than rotation matrix. The only thing I'm not sure is how quaternion can be used for rotating tensors.

An example of using Quaternion in Julia can be found here.