Houdini 20.5 Nodes APEX nodes

quaternion::SwingTwistDecompose<T>

Decomposes a quaternion into a swing and a twist along an axis.

On this page
Since 20.0

Decomposes a quaternion into a swing and a twist along an axis. By default, the decomposition is Q = Swing * Twist.

Inputs

quaternion: Vector4

The input quaternion.

axis: Vector3

The axis of the decomposition.

reverse: Bool

If set to True, the decomposition is Q = Twist * Swing.

Outputs

swing: Vector4

The quaternion that represents the swing part of the decomposition.

twist: Float, Vector4

The Float or quaternion (Vector4) that represents the twist part of the decomposition.

See also

APEX nodes