Skip to contents

Quaternion From Axis Angle

Usage

quaternion_from_axis_angle(axis, angle)

Arguments

axis

A numeric vector of length 3.

angle

A number.

Value

A numeric vector of length 4

Examples

quaternion_from_axis_angle(c(0, 0, 0), 0.0)
#> x y z w 
#> 0 0 0 1