newton.core.quat_between_axes#

newton.core.quat_between_axes(*axes)[source]#

Compute the rotation between a sequence of axes.

This function returns a quaternion that represents the cumulative rotation through a sequence of axes. For example, for axes (a, b, c), it computes the rotation from a to c by composing the rotation from a to b and b to c.

Parameters:

axes (AxisType) – A sequence of axes, e.g., (ā€˜x’, ā€˜y’, ā€˜z’).

Returns:

The total rotation quaternion.

Return type:

wp.quat