Appearance
KBE3D / KBCore / Cesium / Transforms / northUpEastToFixedFrame
函数: northUpEastToFixedFrame()
northUpEastToFixedFrame(
origin:Cartesian3,ellipsoid?:Ellipsoid,result?:Matrix4):Matrix4
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: <ul> <li>The <code>x</code> axis points in the local north direction.</li> <li>The <code>y</code> axis points in the direction of the ellipsoid surface normal which passes through the position.</li> <li>The <code>z</code> axis points in the local east direction.</li> </ul>
参数
origin
The center point of the local reference frame.
ellipsoid?
The ellipsoid whose fixed frame is used in the transformation.
result?
The object onto which to store the result.
返回
The modified result parameter or a new Matrix4 instance if none was provided.
示例
ts
// Get the transform from local north-up-east at cartographic (0.0, 0.0) to Earth's fixed frame.
const center = Cesium.Cartesian3.fromDegrees(0.0, 0.0);
const transform = Cesium.Transforms.northUpEastToFixedFrame(center);