EcefTangentBasis (Class)

Namespace: Wrld.Common.Maths

This tangent basis class defines a coordinate frame that is at a point on the surface of the earth. The tangent at that point on the surface is used to create this local coordinate system and is useful for positioning objects relative to this reference frame.

Methods

void Set (DoubleVector3 pointEcef, Vector3 heading)

Calculate a new tangent plane and set its parameters in the tangent basis.

Argument Type Description
pointEcef DoubleVector3 The point on the surface of the earth in ECEF.
heading Vector3 A vector pointing along the forward direction.

void SetPoint (DoubleVector3 pointEcef)

Calculate a new tangent plane using the stored forward vector.

Argument Type Description
pointEcef DoubleVector3 The point on the surface of the earth in ECEF.

void SetHeading (Vector3 heading)

Calculate a new tangent plane using the stored surface ECEF point.

Argument Type Description
heading Vector3 A vector pointing along the forward direction.

Properties

DoubleVector3 PointEcef

Get the surface point of the tangent basis in ECEF.

DoubleVector3 PointEcef { get; private set; } 

Vector3 Right

Get the right vector of the tangent plane.

Vector3 Right { get; private set; } 

Vector3 Up

Get the up vector of the tangent plane.

Vector3 Up { get; private set; } 

Vector3 Forward

Get the forward vector of the tangent plane.

Vector3 Forward { get; private set; } 
v0.8.17