from_DCM#

Quaternion.from_DCM(dcm: ndarray, method: str = 'chiaverini', **kw) ndarray#

Quaternion from Direction Cosine Matrix.

There are five methods available to obtain a quaternion from a Direction Cosine Matrix:

Parameters:
  • dcm (numpy.ndarray) – 3-by-3 Direction Cosine Matrix.

  • method (str, default: 'chiaverini') – Method to use. Options are: ‘chiaverini’, ‘hughes’, ‘itzhack’, ‘sarabandi’, and ‘shepperd’.

Notes

The selection can be simplified with Structural Pattern Matching if using Python 3.10 or later.