Skip to contents

Quaternion Add

Usage

quaternion_add(q1, q2)

Arguments

q1

A numeric vector of length 4.

q2

A numeric vector of length 4.

Value

A numeric vector of length 4

Examples

quaternion_add(c(0, 0, 0, 1), c(0, 0, 0, 1))
#> x y z w 
#> 0 0 0 2