Module orientation

Module orientation 

Source
Expand description

Quaternion and axis-angle conversion utilities. Quaternion and axis-angle conversion utilities for MDL orientation data.

Binary MDL stores orientations as quaternions [w, x, y, z]. ASCII MDL uses axis-angle representation x y z angle (angle in radians). These functions convert between the two representations.

Functionsยง

axis_angle_to_quat
Converts axis-angle [ax, ay, az, angle] to quaternion [w, x, y, z].
quat_to_axis_angle
Converts a quaternion [w, x, y, z] to axis-angle [ax, ay, az, angle].