A plane tangent to the provided ellipsoid at the provided origin.
If origin is not on the surface of the ellipsoid, it's surface projection will be used.
If origin is at the center of the ellipsoid, an exception will be thrown.
参数名称 | 类型 | 默认值 | 描述信息 |
---|---|---|---|
origin |
Cartesian3 | The point on the surface of the ellipsoid where the tangent plane touches. | |
ellipsoid |
Ellipsoid |
Ellipsoid.default
|
可选 The ellipsoid to use. |
Throws:
-
DeveloperError : origin must not be at the center of the ellipsoid.
成员(属性)
Gets the ellipsoid.
Gets the origin.
readonly plane : Plane
Gets the plane which is tangent to the ellipsoid.
readonly xAxis : Cartesian3
Gets the local X-axis (east) of the tangent plane.
readonly yAxis : Cartesian3
Gets the local Y-axis (north) of the tangent plane.
readonly zAxis : Cartesian3
Gets the local Z-axis (up) of the tangent plane.
方法
static Cesium.EllipsoidTangentPlane.fromPoints(cartesians, ellipsoid) → EllipsoidTangentPlane
Creates a new instance from the provided ellipsoid and the center
point of the provided Cartesians.
参数名称 | 类型 | 默认值 | 描述信息 |
---|---|---|---|
cartesians |
Array.<Cartesian3> | The list of positions surrounding the center point. | |
ellipsoid |
Ellipsoid |
Ellipsoid.default
|
可选 The ellipsoid to use. |
返回值:
The new instance of EllipsoidTangentPlane.
projectPointOntoEllipsoid(cartesian, result) → Cartesian3
Computes the projection of the provided 2D position onto the 3D ellipsoid.
参数名称 | 类型 | 描述信息 |
---|---|---|
cartesian |
Cartesian2 | The points to project. |
result |
Cartesian3 | 可选 The Cartesian3 instance to store result. |
返回值:
The modified result parameter or a new Cartesian3 instance if none was provided.
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.
参数名称 | 类型 | 描述信息 |
---|---|---|
cartesian |
Cartesian3 | The point to project. |
result |
Cartesian2 | 可选 The object onto which to store the result. |
返回值:
The modified result parameter or a new Cartesian2 instance if none was provided. Undefined if there is no intersection point
projectPointsOntoEllipsoid(cartesians, result) → Array.<Cartesian3>
Computes the projection of the provided 2D positions onto the 3D ellipsoid.
参数名称 | 类型 | 描述信息 |
---|---|---|
cartesians |
Array.<Cartesian2> | The array of points to project. |
result |
Array.<Cartesian3> | 可选 The array of Cartesian3 instances onto which to store results. |
返回值:
The modified result parameter or a new array of Cartesian3 instances if none was provided.
projectPointsOntoPlane(cartesians, result) → Array.<Cartesian2>
Computes the projection of the provided 3D positions onto the 2D plane (where possible), radially outward from the global origin.
The resulting array may be shorter than the input array - if a single projection is impossible it will not be included.
参数名称 | 类型 | 描述信息 |
---|---|---|
cartesians |
Array.<Cartesian3> | The array of points to project. |
result |
Array.<Cartesian2> | 可选 The array of Cartesian2 instances onto which to store results. |
返回值:
The modified result parameter or a new array of Cartesian2 instances if none was provided.
- EllipsoidTangentPlane.projectPointOntoPlane
参考:
projectPointsToNearestOnPlane(cartesians, result) → Array.<Cartesian2>
Computes the projection of the provided 3D positions onto the 2D plane, along the plane normal.
参数名称 | 类型 | 描述信息 |
---|---|---|
cartesians |
Array.<Cartesian3> | The array of points to project. |
result |
Array.<Cartesian2> | 可选 The array of Cartesian2 instances onto which to store results. |
返回值:
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
参考:
projectPointToNearestOnPlane(cartesian, result) → Cartesian2
Computes the projection of the provided 3D position onto the 2D plane, along the plane normal.
参数名称 | 类型 | 描述信息 |
---|---|---|
cartesian |
Cartesian3 | The point to project. |
result |
Cartesian2 | 可选 The object onto which to store the result. |
返回值:
The modified result parameter or a new Cartesian2 instance if none was provided.