new 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 as at the center of the ellipsoid, an exception will be thrown.
Parameters:
Name | Type | Description |
---|---|---|
ellipsoid |
Ellipsoid | The ellipsoid to use. |
origin |
Cartesian3 | The point on the surface of the ellipsoid where the tangent plane touches. |
Throws:
DeveloperError
: origin must not be at the center of the ellipsoid.
Source:
Members
-
ellipsoid :Ellipsoid
-
Gets the ellipsoid.
-
origin :Cartesian3
-
Gets the origin.
Methods
-
projectPointOntoPlane
-
Computes the projection of the provided 3D position onto the 2D plane.
Parameters:
Name Type Argument Description cartesian
Cartesian3 The point to project. result
Cartesian2 <optional>
The object onto which to store the result. Returns:
Cartesian2 The modified result parameter or a new Cartesian2 instance if none was provided. -
projectPointsOntoEllipsoid
-
Computes the projection of the provided 2D positions onto the 3D ellipsoid.
Parameters:
Name Type Argument Description cartesians
Array The array of points to project. result
Array <optional>
The array of Cartesian3 instances onto which to store results. Returns:
Array The modified result parameter or a new array of Cartesian3 instances if none was provided. -
projectPointsOntoPlane
-
Computes the projection of the provided 3D positions onto the 2D plane.
Parameters:
Name Type Argument Description cartesians
Array The array of points to project. result
Array <optional>
The array of Cartesian2 instances onto which to store results. Returns:
Array The modified result parameter or a new array of Cartesian2 instances if none was provided. -
<static> fromPoints
-
Creates a new instance from the provided ellipsoid and the center point of the provided Cartesians.
Parameters:
Name Type Description ellipsoid
Ellipsoid The ellipsoid to use. cartesians
Cartesian3 The list of positions surrounding the center point.