fixedFrameToHeadingPitchRoll

fun fixedFrameToHeadingPitchRoll(transform: Matrix4, ellipsoid: Ellipsoid? = definedExternally, fixedFrameTransform: LocalFrameToFixedFrame? = definedExternally, result: HeadingPitchRoll? = definedExternally): HeadingPitchRoll(source)

Computes heading-pitch-roll angles from a transform in a particular reference frame. Heading is the rotation from the local east direction where a positive angle is increasing eastward. Pitch is the rotation from the local east-north plane. Positive pitch angles are above the plane. Negative pitch angles are below the plane. Roll is the first rotation applied about the local east axis.

Return

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

Parameters

transform

The transform

ellipsoid

The ellipsoid whose fixed frame is used in the transformation. Default value - Ellipsoid.default

fixedFrameTransform

A 4x4 transformation matrix from a reference frame to the provided ellipsoid's fixed reference frame Default value - Transforms.eastNorthUpToFixedFrame

result

The object onto which to store the result.

See also