![]() |
MapLink Pro 11.2
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|

A direction in geocentric (ECEF) space
This class is used to specify a direction vector in Earth-Centered Earth-Fixed (ECEF) space x, y, and z are specified as meters relative to the center of mass of the earth.
Public Member Functions | |
| GeocentricDirection () | |
| Constructor. | |
| GeocentricDirection (double x, double y, double z) | |
| Constructor. | |
| GeocentricDirection (const GeocentricDirection &other) | |
| Copy Constructor. | |
| GeocentricDirection (const Vec3 &other) | |
| Copy Constructor. | |
| virtual | ~GeocentricDirection () |
| Destructor. | |
| GeocentricPoint | toPoint () const |
| GeocentricPoint | toPoint (const GeocentricPoint &origin) const |
| bool | operator== (const GeocentricDirection &v) const |
| Equality operator. | |
| bool | operator!= (const GeocentricDirection &v) const |
| Inequality operator. | |
| bool | operator< (const Vec3 &v) const |
| Less than operator. | |
| const GeocentricDirection | operator* (const double &v) const |
| Multiply the vector by a scalar value. | |
| GeocentricDirection | operator*= (const double &v) |
| Multiply the vector by a scalar value. | |
| const GeocentricDirection | operator/ (const double &v) const |
| Divide the vector by a scalar value. | |
| GeocentricDirection | operator/= (const double &v) |
| Divide the vector by a scalar value. | |
| const GeocentricDirection | operator+ (const GeocentricDirection &v) const |
| Addition operator. | |
| GeocentricDirection | operator+= (const GeocentricDirection &v) |
| Addition operator. | |
| const GeocentricDirection | operator- (const GeocentricDirection &v) const |
| Subtraction operator. | |
| GeocentricDirection | operator-= (const GeocentricDirection &v) |
| Subtraction operator. | |
| double | operator* (const GeocentricDirection &v) const |
| const GeocentricDirection | operator^ (const GeocentricDirection &v) const |
Public Member Functions inherited from envitia::maplink::earth::Vec3 | |
| virtual | ~Vec3 () |
| Destructor. | |
| double | x () const |
| Get the x component of the vector. | |
| double | y () const |
| Get the y component of the vector. | |
| double | z () const |
| Get the z component of the vector. | |
| void | x (double v) |
| Set the x component of the vector. | |
| void | y (double v) |
| Set the y component of the vector. | |
| void | z (double v) |
| Set the z component of the vector. | |
| double | length () const |
| Get the length of the vector. | |
| void | normalise () |
Additional Inherited Members | |
Protected Member Functions inherited from envitia::maplink::earth::Vec3 | |
| Vec3 () | |
| Constructor. | |
| Vec3 (double x, double y, double z) | |
| Constructor. | |
| Vec3 (const Vec3 &other) | |
| Copy Constructor. | |
| bool | operator== (const Vec3 &v) const |
| Equality operator. | |
| bool | operator!= (const Vec3 &v) const |
| Inequality operator. | |
| bool | operator< (const Vec3 &v) const |
| Less than operator. | |
| const Vec3 | operator* (const double &v) const |
| Multiply the vector by a scalar value. | |
| Vec3 | operator*= (const double &v) |
| Multiply the vector by a scalar value. | |
| const Vec3 | operator/ (const double &v) const |
| Divide the vector by a scalar value. | |
| Vec3 | operator/= (const double &v) |
| Divide the vector by a scalar value. | |
| const Vec3 | operator+ (const Vec3 &v) const |
| Addition operator. | |
| Vec3 | operator+= (const Vec3 &v) |
| Addition operator. | |
| const Vec3 | operator- (const Vec3 &v) const |
| Subtraction operator. | |
| Vec3 | operator-= (const Vec3 &v) |
| Subtraction operator. | |
| double | operator* (const Vec3 &v) const |
| const Vec3 | operator^ (const Vec3 &v) const |
Protected Attributes inherited from envitia::maplink::earth::Vec3 | |
| double | m_v [3] |
| envitia::maplink::earth::GeocentricDirection::GeocentricDirection | ( | ) |
Constructor.
| envitia::maplink::earth::GeocentricDirection::GeocentricDirection | ( | double | x, |
| double | y, | ||
| double | z ) |
Constructor.
| envitia::maplink::earth::GeocentricDirection::GeocentricDirection | ( | const GeocentricDirection & | other | ) |
Copy Constructor.
| envitia::maplink::earth::GeocentricDirection::GeocentricDirection | ( | const Vec3 & | other | ) |
Copy Constructor.
|
virtual |
Destructor.
| bool envitia::maplink::earth::GeocentricDirection::operator!= | ( | const GeocentricDirection & | v | ) | const |
Inequality operator.
| const GeocentricDirection envitia::maplink::earth::GeocentricDirection::operator* | ( | const double & | v | ) | const |
Multiply the vector by a scalar value.
| double envitia::maplink::earth::GeocentricDirection::operator* | ( | const GeocentricDirection & | v | ) | const |
Calculate the dot product with another vector
| v | The vector to perform a dot product against |
| GeocentricDirection envitia::maplink::earth::GeocentricDirection::operator*= | ( | const double & | v | ) |
Multiply the vector by a scalar value.
| const GeocentricDirection envitia::maplink::earth::GeocentricDirection::operator+ | ( | const GeocentricDirection & | v | ) | const |
Addition operator.
| GeocentricDirection envitia::maplink::earth::GeocentricDirection::operator+= | ( | const GeocentricDirection & | v | ) |
Addition operator.
| const GeocentricDirection envitia::maplink::earth::GeocentricDirection::operator- | ( | const GeocentricDirection & | v | ) | const |
Subtraction operator.
| GeocentricDirection envitia::maplink::earth::GeocentricDirection::operator-= | ( | const GeocentricDirection & | v | ) |
Subtraction operator.
| const GeocentricDirection envitia::maplink::earth::GeocentricDirection::operator/ | ( | const double & | v | ) | const |
Divide the vector by a scalar value.
| GeocentricDirection envitia::maplink::earth::GeocentricDirection::operator/= | ( | const double & | v | ) |
Divide the vector by a scalar value.
| bool envitia::maplink::earth::GeocentricDirection::operator< | ( | const Vec3 & | v | ) | const |
Less than operator.
| bool envitia::maplink::earth::GeocentricDirection::operator== | ( | const GeocentricDirection & | v | ) | const |
Equality operator.
| const GeocentricDirection envitia::maplink::earth::GeocentricDirection::operator^ | ( | const GeocentricDirection & | v | ) | const |
Calculate the cross product with another vector
| v | The vector to perform a cross product against |
| GeocentricPoint envitia::maplink::earth::GeocentricDirection::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.
| GeocentricPoint envitia::maplink::earth::GeocentricDirection::toPoint | ( | const GeocentricPoint & | 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.
| origin | The origin of the direction |