eastNorthUpToFixedFrame

fun eastNorthUpToFixedFrame(origin: Cartesian3, ellipsoid: Ellipsoid? = definedExternally, result: Matrix4? = definedExternally): Matrix4(source)

Computes a 4x4 transformation matrix from a reference frame with an east-north-up axes centered at the provided origin to the provided ellipsoid's fixed reference frame. The local axes are defined as:

  • The x axis points in the local east direction.

  • The y axis points in the local north direction.

  • The z axis points in the direction of the ellipsoid surface normal which passes through the position.

// Get the transform from local east-north-up at cartographic (0.0, 0.0) to Earth's fixed frame.
const center = Cartesian3.fromDegrees(0.0, 0.0);
const transform = Transforms.eastNorthUpToFixedFrame(center);

Return

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

Parameters

origin

The center point of the local reference frame.

ellipsoid

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

result

The object onto which to store the result.

See also