fromHeadingPitchRoll

fun fromHeadingPitchRoll(headingPitchRoll: HeadingPitchRoll, result: Quaternion? = definedExternally): Quaternion(source)

Computes a rotation from the given heading, pitch and roll angles. Heading is the rotation about the negative z axis. Pitch is the rotation about the negative y axis. Roll is the rotation about the positive x axis.

Return

The modified result parameter or a new Quaternion instance if none was provided.

Parameters

headingPitchRoll

The rotation expressed as a heading, pitch and roll.

result

The object onto which to store the result.

See also