northWestUpToFixedFrame

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

Computes a 4x4 transformation matrix from a reference frame with an north-west-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 north direction.

  • The y axis points in the local west direction.

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

// Get the transform from local north-West-Up at cartographic (0.0, 0.0) to Earth's fixed frame.
const center = Cartesian3.fromDegrees(0.0, 0.0);
const transform = Transforms.northWestUpToFixedFrame(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