EllipsoidTangentPlane

open 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
external object Companion

Properties

Link copied to clipboard
external var ellipsoid: Ellipsoid

The ellipsoid to use. Default value - Ellipsoid.default

Link copied to clipboard
external var origin: Cartesian3

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

Link copied to clipboard
external val plane: Plane

Gets the plane which is tangent to the ellipsoid.

Link copied to clipboard
external val xAxis: Cartesian3

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

Link copied to clipboard
external val yAxis: Cartesian3

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

Link copied to clipboard
external val zAxis: Cartesian3

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

Functions

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

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

Link copied to clipboard
external 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
external fun projectPointsOntoEllipsoid(cartesians: ReadonlyArray<Cartesian2>, result: ReadonlyArray<Cartesian3>? = definedExternally): ReadonlyArray<Cartesian3>

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

Link copied to clipboard
external fun projectPointsOntoPlane(cartesians: ReadonlyArray<Cartesian3>, result: ReadonlyArray<Cartesian2>? = definedExternally): ReadonlyArray<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.

Link copied to clipboard
external fun projectPointsToNearestOnPlane(cartesians: ReadonlyArray<Cartesian3>, result: ReadonlyArray<Cartesian2>? = definedExternally): ReadonlyArray<Cartesian2>

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

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

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