Appearance
KBE3D / KBCore / Cesium / Transforms / northWestUpToFixedFrame
函数: northWestUpToFixedFrame()
northWestUpToFixedFrame(
origin:Cartesian3,ellipsoid?:Ellipsoid,result?:Matrix4):Matrix4
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: <ul> <li>The <code>x</code> axis points in the local north direction.</li> <li>The <code>y</code> axis points in the local west direction.</li> <li>The <code>z</code> axis points in the direction of the ellipsoid surface normal which passes through the position.</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-West-Up at cartographic (0.0, 0.0) to Earth's fixed frame.
const center = Cesium.Cartesian3.fromDegrees(0.0, 0.0);
const transform = Cesium.Transforms.northWestUpToFixedFrame(center);