与所提供的椭圆形原产地的飞机正切.
如果原产地不在椭圆形的表面,则会使用表面投影.
如果起源位于椭圆的中心,则会抛出一个例外.
| Name | Type | Default | Description |
|---|---|---|---|
origin |
Cartesian3 | 正切平面接触的椭圆表面的点. | |
ellipsoid |
Ellipsoid |
Ellipsoid.default
|
optional The ellipsoid to use. |
Throws:
-
DeveloperError : origin must not be at the center of the ellipsoid.
Members
ellipsoid : Ellipsoid
获得椭圆形.
origin : Cartesian3
获得源.
readonly plane : Plane
得到与椭圆正切的平面.
readonly xAxis : Cartesian3
获得正切平面的本地X轴(东).
readonly yAxis : Cartesian3
获得正切平面的本地Y轴(北).
readonly zAxis : Cartesian3
获取正切平面的本地Z轴(上).
Methods
static Cesium.EllipsoidTangentPlane.fromPoints(cartesians, ellipsoid) → EllipsoidTangentPlane
从提供的椭圆和中心创建新实例
提供笛卡尔的点.
| Name | Type | Default | Description |
|---|---|---|---|
cartesians |
Array.<Cartesian3> | 中心点周边位置列表. | |
ellipsoid |
Ellipsoid |
Ellipsoid.default
|
optional The ellipsoid to use. |
Returns:
新例椭圆体TangentPlane.
projectPointOntoEllipsoid(cartesian, result) → Cartesian3
计算给定的2D位置投影到3D椭圆上.
| Name | Type | Description |
|---|---|---|
cartesian |
Cartesian2 | 点到项目. |
result |
Cartesian3 | optional The Cartesian3 instance to store result. |
Returns:
如果未提供修改的结果参数或新的 NT% 0 实例 .
projectPointOntoPlane(cartesian, result) → Cartesian2
Computes the projection of the provided 3D position onto the 2D plane, radially outward from the
EllipsoidTangentPlane.ellipsoid coordinate system origin.
| Name | Type | Description |
|---|---|---|
cartesian |
Cartesian3 | 投影点. |
result |
Cartesian2 | optional 存储结果的对象 . |
Returns:
如果未提供修改的结果参数或新的 NT% 0 实例 。 如果没有交叉点, 未定义
projectPointsOntoEllipsoid(cartesians, result) → Array.<Cartesian3>
计算将提供的2D位置投射到3D椭圆上.
| Name | Type | Description |
|---|---|---|
cartesians |
Array.<Cartesian2> | 工程的点数组 . |
result |
Array.<Cartesian3> | optional The array of Cartesian3 instances onto which to store results. |
Returns:
The modified result parameter or a new array of Cartesian3 instances if none was provided.
projectPointsOntoPlane(cartesians, result) → Array.<Cartesian2>
计算提供的3D位置投影到2D平面上(如有可能),从全球来源向外辐射.
所产生的数组可能比输入数组短——如果不可能有一个单一的投影,则将不包含.
| Name | Type | Description |
|---|---|---|
cartesians |
Array.<Cartesian3> | 工程的点数组 . |
result |
Array.<Cartesian2> | optional The array of Cartesian2 instances onto which to store results. |
Returns:
The modified result parameter or a new array of Cartesian2 instances if none was provided.
- EllipsoidTangentPlane.projectPointOntoPlane
See:
projectPointsToNearestOnPlane(cartesians, result) → Array.<Cartesian2>
计算所提供3D位置投影到2D平面,沿平面正常.
| Name | Type | Description |
|---|---|---|
cartesians |
Array.<Cartesian3> | 工程的点数组 . |
result |
Array.<Cartesian2> | optional The array of Cartesian2 instances onto which to store results. |
Returns:
The modified result parameter or a new array of Cartesian2 instances if none was provided. This will have the same length as
cartesians.
- EllipsoidTangentPlane.projectPointToNearestOnPlane
See:
projectPointToNearestOnPlane(cartesian, result) → Cartesian2
计算向2D平面投影的3D位置,沿平面正常.
| Name | Type | Description |
|---|---|---|
cartesian |
Cartesian3 | 投影点. |
result |
Cartesian2 | optional 存储结果的对象 . |
Returns:
如果未提供修改的结果参数或新的 NT% 0 实例 .