Skip to content

KBE3D / KBCore / Cesium / Transforms / northEastDownToFixedFrame

函数: northEastDownToFixedFrame()

northEastDownToFixedFrame(origin: Cartesian3, ellipsoid?: Ellipsoid, result?: Matrix4): Matrix4

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: <ul> <li>The <code>x</code> axis points in the local north direction.</li> <li>The <code>y</code> axis points in the local east direction.</li> <li>The <code>z</code> axis points in the opposite direction of the ellipsoid surface normal which passes through the position.</li> </ul>

参数

origin

Cartesian3

The center point of the local reference frame.

ellipsoid?

Ellipsoid

The ellipsoid whose fixed frame is used in the transformation.

result?

Matrix4

The object onto which to store the result.

返回

Matrix4

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

示例

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

KBE3D @3.0.0 Copyright © 2024-present KBE3D