Defines an orthogonal coordindate basis in ECEF space. More...
#include <EcefTangentBasis.h>
Public Member Functions | |
EcefTangentBasis (const dv3 &pointEcef, const v3 &heading) | |
Construct from point and heading (forward) direction. More... | |
const dv3 & | GetPointEcef () const |
const v3 & | GetRight () const |
const v3 & | GetUp () const |
const v3 & | GetForward () const |
void | Set (const dv3 &pointEcef, const v3 &heading) |
Set from point and heading (forward) direction. More... | |
void | SetPoint (const dv3 &pointEcef) |
void | SetHeading (const v3 &heading) |
void | GetBasisOrientationAsMatrix (m33 &out) const |
Returns the right, up, forward basis vectors of the basis as a 3x3 matrix. | |
m44 | GetEcefToTangentTransform () const |
m44 | GetTangentToEcefTransform () const |
Static Public Member Functions | |
static EcefTangentBasis | CreateFromMortonKey (const Eegeo::Streaming::MortonKey &key) |
Creates an ecef tangent basis for a morton key. More... | |
Defines an orthogonal coordindate basis in ECEF space.
EcefTangentBasis defines an orthogonal coordinate basis located at a point in ECEF (Earth-centred, Earth-fixed) space. The "up" direction is constrained to be perpendicular to the (earth-) sphere's surface - so are radial from the sphere centre. The "right" and "forward" directions lie on a plane that is tangential to the earth-sphere surface.
Construct from point and heading (forward) direction.
pointEcef | the origin of the coordinate basis, in ECEF coordinates |
heading | direction. This is projected onto the sphere-tangent plane passing through pointEcef, to become the Forward direction |
|
static |
Creates an ecef tangent basis for a morton key.
key. | The morton key for which the ecef tangent basis is to be constructed |
Set from point and heading (forward) direction.
pointEcef | the origin of the coordinate basis, in ECEF coordinates |
heading | direction. This is projected onto the sphere-tangent plane passing through pointEcef, to become the Forward direction |