northEastDownToFixedFrame
fun northEastDownToFixedFrame(origin: Cartesian3, ellipsoid: Ellipsoid? = definedExternally, result: Matrix4? = definedExternally): Matrix4(source)
Computes a 4x4 transformation matrix from a reference frame with an north-east-down axes centered at the provided origin to the provided ellipsoid's fixed reference frame. The local axes are defined as:
The
xaxis points in the local north direction.The
yaxis points in the local east direction.The
zaxis points in the opposite direction of the ellipsoid surface normal which passes through the position.
// Get the transform from local north-east-down at cartographic (0.0, 0.0) to Earth's fixed frame.
const center = Cartesian3.fromDegrees(0.0, 0.0);
const transform = Transforms.northEastDownToFixedFrame(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.