euler ( phi theta psi -- q ) (original) (raw)

euler ( phi theta psi -- q )

Vocabulary
math.quaternions

Inputs

phi a number
theta a number
psi a number

Outputs

q a quaternion

Word description
Convert a rotation given by Euler angles (phi, theta, and psi) to a quaternion.

Definition

IN: math.quaternions

: euler ( phi theta psi -- q ) { } euler-like ; inline