EllipsoidTangentPlane

external class EllipsoidTangentPlane(var origin: Cartesian3, var ellipsoid: Ellipsoid = definedExternally)(source)

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.

See also

Constructors

Link copied to clipboard
constructor(origin: Cartesian3, ellipsoid: Ellipsoid = definedExternally)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The ellipsoid to use. Default value - Ellipsoid.default

Link copied to clipboard

The point on the surface of the ellipsoid where the tangent plane touches.

Link copied to clipboard

Gets the plane which is tangent to the ellipsoid.

Link copied to clipboard

Gets the local X-axis (east) of the tangent plane.

Link copied to clipboard

Gets the local Y-axis (north) of the tangent plane.

Link copied to clipboard

Gets the local Z-axis (up) of the tangent plane.

Functions

Link copied to clipboard
fun projectPointOntoEllipsoid(cartesian: Cartesian2, result: Cartesian3? = definedExternally): Cartesian3

Computes the projection of the provided 2D position onto the 3D ellipsoid.

Link copied to clipboard
fun projectPointOntoPlane(cartesian: Cartesian3, result: Cartesian2? = definedExternally): Cartesian2

Computes the projection of the provided 3D position onto the 2D plane, radially outward from the EllipsoidTangentPlane.ellipsoid coordinate system origin.

Link copied to clipboard

Computes the projection of the provided 2D positions onto the 3D ellipsoid.

Link copied to clipboard

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.

Link copied to clipboard

Computes the projection of the provided 3D positions onto the 2D plane, along the plane normal.

Link copied to clipboard
fun projectPointToNearestOnPlane(cartesian: Cartesian3, result: Cartesian2? = definedExternally): Cartesian2

Computes the projection of the provided 3D position onto the 2D plane, along the plane normal.