Skip to contents

Quaternion Transform

Usage

quaternion_transform(q, mat)

Arguments

q

A numeric vector of length 4.

mat

A 4x4 numeric matrix.

Value

A numeric vector of length 4

Examples

quaternion_transform(c(0, 0, 0, 1), diag(4))
#> x y z w 
#> 0 0 0 1