northUpEastToFixedFrame
fun northUpEastToFixedFrame(origin: Cartesian3, ellipsoid: Ellipsoid? = definedExternally, result: Matrix4? = definedExternally): Matrix4(source)
Computes a 4x4 transformation matrix from a reference frame with an north-up-east 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 direction of the ellipsoid surface normal which passes through the position.The
z
axis points in the local east direction.
// Get the transform from local north-up-east at cartographic (0.0, 0.0) to Earth's fixed frame.
const center = Cartesian3.fromDegrees(0.0, 0.0);
const transform = Transforms.northUpEastToFixedFrame(center);
Content copied to clipboard
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.