Skip to contents

Quaternion From Matrix

Usage

quaternion_from_matrix(mat)

Arguments

mat

A 4x4 numeric matrix.

Value

A numeric vector of length 4

Examples

quaternion_from_matrix(diag(4))
#> x y z w 
#> 0 0 0 1