MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
envitia::maplink::earth::GeodeticDirection Class Reference
Inheritance diagram for envitia::maplink::earth::GeodeticDirection:

Detailed Description

A direction in geodetic (ENU) space

This class is used to specify a direction vector in East-North-Up (ENU) space

  • x: longitude in WGS84
  • y: latitude in WGS84
  • z: altitude in meters, relative to the ellipsoid
Note
Due to the nature of this coordinate system a direction in ENU space does not correspond to a straight line in ECEF space, or visually. In addition modifying the length of this class will affect the direction in relation to other coordinate spaces.

Public Member Functions

 GeodeticDirection ()
 Constructor.
 
 GeodeticDirection (double x, double y, double z)
 Constructor.
 
 GeodeticDirection (const GeodeticDirection &other)
 Copy Constructor.
 
 GeodeticDirection (const Vec3 &other)
 Copy Constructor.
 
virtual ~GeodeticDirection ()
 Destructor.
 
GeodeticPoint toPoint () const
 
GeodeticPoint toPoint (const GeodeticPoint &origin) const
 
bool operator== (const GeodeticDirection &v) const
 Equality operator.
 
bool operator!= (const GeodeticDirection &v) const
 Inequality operator.
 
bool operator< (const Vec3 &v) const
 Less than operator.
 
const GeodeticDirection operator* (const double &v) const
 Multiply the vector by a scalar value.
 
GeodeticDirection operator*= (const double &v)
 Multiply the vector by a scalar value.
 
const GeodeticDirection operator/ (const double &v) const
 Divide the vector by a scalar value.
 
GeodeticDirection operator/= (const double &v)
 Divide the vector by a scalar value.
 
const GeodeticDirection operator+ (const GeodeticDirection &v) const
 Addition operator.
 
GeodeticDirection operator+= (const GeodeticDirection &v)
 Addition operator.
 
const GeodeticDirection operator- (const GeodeticDirection &v) const
 Subtraction operator.
 
GeodeticDirection operator-= (const GeodeticDirection &v)
 Subtraction operator.
 
double operator* (const GeodeticDirection &v) const
 
const GeodeticDirection operator^ (const GeodeticDirection &v) const
 

Additional Inherited Members

Constructor & Destructor Documentation

◆ GeodeticDirection() [1/4]

envitia::maplink::earth::GeodeticDirection::GeodeticDirection ( )

Constructor.

◆ GeodeticDirection() [2/4]

envitia::maplink::earth::GeodeticDirection::GeodeticDirection ( double x,
double y,
double z )

Constructor.

◆ GeodeticDirection() [3/4]

envitia::maplink::earth::GeodeticDirection::GeodeticDirection ( const GeodeticDirection & other)

Copy Constructor.

◆ GeodeticDirection() [4/4]

envitia::maplink::earth::GeodeticDirection::GeodeticDirection ( const Vec3 & other)

Copy Constructor.

◆ ~GeodeticDirection()

virtual envitia::maplink::earth::GeodeticDirection::~GeodeticDirection ( )
virtual

Destructor.

Member Function Documentation

◆ operator!=()

bool envitia::maplink::earth::GeodeticDirection::operator!= ( const GeodeticDirection & v) const

Inequality operator.

◆ operator*() [1/2]

const GeodeticDirection envitia::maplink::earth::GeodeticDirection::operator* ( const double & v) const

Multiply the vector by a scalar value.

◆ operator*() [2/2]

double envitia::maplink::earth::GeodeticDirection::operator* ( const GeodeticDirection & v) const

Calculate the dot product with another vector

Parameters
vThe vector to perform a dot product against
Returns
The dot product (this . v)

◆ operator*=()

GeodeticDirection envitia::maplink::earth::GeodeticDirection::operator*= ( const double & v)

Multiply the vector by a scalar value.

◆ operator+()

const GeodeticDirection envitia::maplink::earth::GeodeticDirection::operator+ ( const GeodeticDirection & v) const

Addition operator.

◆ operator+=()

GeodeticDirection envitia::maplink::earth::GeodeticDirection::operator+= ( const GeodeticDirection & v)

Addition operator.

◆ operator-()

const GeodeticDirection envitia::maplink::earth::GeodeticDirection::operator- ( const GeodeticDirection & v) const

Subtraction operator.

◆ operator-=()

GeodeticDirection envitia::maplink::earth::GeodeticDirection::operator-= ( const GeodeticDirection & v)

Subtraction operator.

◆ operator/()

const GeodeticDirection envitia::maplink::earth::GeodeticDirection::operator/ ( const double & v) const

Divide the vector by a scalar value.

◆ operator/=()

GeodeticDirection envitia::maplink::earth::GeodeticDirection::operator/= ( const double & v)

Divide the vector by a scalar value.

◆ operator<()

bool envitia::maplink::earth::GeodeticDirection::operator< ( const Vec3 & v) const

Less than operator.

◆ operator==()

bool envitia::maplink::earth::GeodeticDirection::operator== ( const GeodeticDirection & v) const

Equality operator.

◆ operator^()

const GeodeticDirection envitia::maplink::earth::GeodeticDirection::operator^ ( const GeodeticDirection & v) const

Calculate the cross product with another vector

Parameters
vThe vector to perform a cross product against
Returns
The cross product (this x v)

◆ toPoint() [1/2]

GeodeticPoint envitia::maplink::earth::GeodeticDirection::toPoint ( ) const

Convert to a position

The position will be calculated as a translation from the origin along this direction.

The length of the direction class will be used to determine the resulting point.

◆ toPoint() [2/2]

GeodeticPoint envitia::maplink::earth::GeodeticDirection::toPoint ( const GeodeticPoint & origin) const

Convert to a position

The position will be calculated as a translation from the origin along this direction.

The length of the direction class will be used to determine the resulting point.

Parameters
originThe origin of the direction