Appearance
KBE3D / KBCore / Cesium / EllipsoidTangentPlane
类: EllipsoidTangentPlane
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.
参数
The point on the surface of the ellipsoid where the tangent plane touches.
参数
The ellipsoid to use.
属性
ellipsoid
ellipsoid:
Ellipsoid
Gets the ellipsoid.
origin
origin:
Cartesian3
Gets the origin.
plane
readonlyplane:Plane
Gets the plane which is tangent to the ellipsoid.
xAxis
readonlyxAxis:Cartesian3
Gets the local X-axis (east) of the tangent plane.
yAxis
readonlyyAxis:Cartesian3
Gets the local Y-axis (north) of the tangent plane.
zAxis
readonlyzAxis:Cartesian3
Gets the local Z-axis (up) of the tangent plane.
方法
fromPoints()
staticfromPoints(cartesians:Cartesian3[],ellipsoid?:Ellipsoid):EllipsoidTangentPlane
Creates a new instance from the provided ellipsoid and the center point of the provided Cartesians.
参数
cartesians
The list of positions surrounding the center point.
ellipsoid?
The ellipsoid to use.
返回
EllipsoidTangentPlane
The new instance of EllipsoidTangentPlane.
projectPointOntoPlane()
projectPointOntoPlane(
cartesian:Cartesian3,result?:Cartesian2):Cartesian2
Computes the projection of the provided 3D position onto the 2D plane, radially outward from the EllipsoidTangentPlane.ellipsoid coordinate system origin.
参数
cartesian
The point to project.
result?
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
projectPointsOntoPlane()
projectPointsOntoPlane(
cartesians:Cartesian3[],result?:Cartesian2[]):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
The array of points to project.
result?
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.
projectPointToNearestOnPlane()
projectPointToNearestOnPlane(
cartesian:Cartesian3,result?:Cartesian2):Cartesian2
Computes the projection of the provided 3D position onto the 2D plane, along the plane normal.
参数
cartesian
The point to project.
result?
The object onto which to store the result.
返回
The modified result parameter or a new Cartesian2 instance if none was provided.
projectPointsToNearestOnPlane()
projectPointsToNearestOnPlane(
cartesians:Cartesian3[],result?:Cartesian2[]):Cartesian2[]
Computes the projection of the provided 3D positions onto the 2D plane, along the plane normal.
参数
cartesians
The array of points to project.
result?
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.
projectPointOntoEllipsoid()
projectPointOntoEllipsoid(
cartesian:Cartesian2,result?:Cartesian3):Cartesian3
Computes the projection of the provided 2D position onto the 3D ellipsoid.
参数
cartesian
The points to project.
result?
The Cartesian3 instance to store result.
返回
The modified result parameter or a new Cartesian3 instance if none was provided.
projectPointsOntoEllipsoid()
projectPointsOntoEllipsoid(
cartesians:Cartesian2[],result?:Cartesian3[]):Cartesian3[]
Computes the projection of the provided 2D positions onto the 3D ellipsoid.
参数
cartesians
The array of points to project.
result?
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.
构造函数
构造函数
new EllipsoidTangentPlane(
origin:Cartesian3,ellipsoid?:Ellipsoid):EllipsoidTangentPlane
参数
origin
ellipsoid?
返回
EllipsoidTangentPlane
