![]() |
MapLink Pro 11.1.2.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
A position in geocentric (ECEF) space
This class is used to specify a position 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 | |
GeocentricPoint () | |
Constructor. | |
GeocentricPoint (double x, double y, double z) | |
Constructor. | |
GeocentricPoint (const GeocentricPoint &other) | |
Copy Constructor. | |
GeocentricPoint (const Vec3 &other) | |
Copy Constructor. | |
virtual | ~GeocentricPoint () |
Destructor. | |
GeocentricDirection | toDirection () const |
GeocentricDirection | toDirection (const GeocentricPoint &origin) const |
bool | operator== (const GeocentricPoint &v) const |
Equality operator. | |
bool | operator!= (const GeocentricPoint &v) const |
Inequality operator. | |
bool | operator< (const Vec3 &v) const |
Less than operator. | |
const GeocentricPoint | operator* (const double &v) const |
Multiply the vector by a scalar value. | |
GeocentricPoint | operator*= (const double &v) |
Multiply the vector by a scalar value. | |
const GeocentricPoint | operator/ (const double &v) const |
Divide the vector by a scalar value. | |
GeocentricPoint | operator/= (const double &v) |
Divide the vector by a scalar value. | |
const GeocentricPoint | operator+ (const GeocentricPoint &v) const |
Addition operator. | |
GeocentricPoint | operator+= (const GeocentricPoint &v) |
Addition operator. | |
const GeocentricPoint | operator- (const GeocentricPoint &v) const |
Subtraction operator. | |
GeocentricPoint | operator-= (const GeocentricPoint &v) |
Subtraction operator. | |
double | operator* (const GeocentricPoint &v) const |
const GeocentricPoint | operator^ (const GeocentricPoint &v) const |
![]() | |
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 | |
![]() | |
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 |
![]() | |
double | m_v [3] |
envitia::maplink::earth::GeocentricPoint::GeocentricPoint | ( | ) |
Constructor.
envitia::maplink::earth::GeocentricPoint::GeocentricPoint | ( | double | x, |
double | y, | ||
double | z ) |
Constructor.
envitia::maplink::earth::GeocentricPoint::GeocentricPoint | ( | const GeocentricPoint & | other | ) |
Copy Constructor.
envitia::maplink::earth::GeocentricPoint::GeocentricPoint | ( | const Vec3 & | other | ) |
Copy Constructor.
|
virtual |
Destructor.
bool envitia::maplink::earth::GeocentricPoint::operator!= | ( | const GeocentricPoint & | v | ) | const |
Inequality operator.
const GeocentricPoint envitia::maplink::earth::GeocentricPoint::operator* | ( | const double & | v | ) | const |
Multiply the vector by a scalar value.
double envitia::maplink::earth::GeocentricPoint::operator* | ( | const GeocentricPoint & | v | ) | const |
Calculate the dot product with another vector
v | The vector to perform a dot product against |
GeocentricPoint envitia::maplink::earth::GeocentricPoint::operator*= | ( | const double & | v | ) |
Multiply the vector by a scalar value.
const GeocentricPoint envitia::maplink::earth::GeocentricPoint::operator+ | ( | const GeocentricPoint & | v | ) | const |
Addition operator.
GeocentricPoint envitia::maplink::earth::GeocentricPoint::operator+= | ( | const GeocentricPoint & | v | ) |
Addition operator.
const GeocentricPoint envitia::maplink::earth::GeocentricPoint::operator- | ( | const GeocentricPoint & | v | ) | const |
Subtraction operator.
GeocentricPoint envitia::maplink::earth::GeocentricPoint::operator-= | ( | const GeocentricPoint & | v | ) |
Subtraction operator.
const GeocentricPoint envitia::maplink::earth::GeocentricPoint::operator/ | ( | const double & | v | ) | const |
Divide the vector by a scalar value.
GeocentricPoint envitia::maplink::earth::GeocentricPoint::operator/= | ( | const double & | v | ) |
Divide the vector by a scalar value.
bool envitia::maplink::earth::GeocentricPoint::operator< | ( | const Vec3 & | v | ) | const |
Less than operator.
bool envitia::maplink::earth::GeocentricPoint::operator== | ( | const GeocentricPoint & | v | ) | const |
Equality operator.
const GeocentricPoint envitia::maplink::earth::GeocentricPoint::operator^ | ( | const GeocentricPoint & | v | ) | const |
Calculate the cross product with another vector
v | The vector to perform a cross product against |
GeocentricDirection envitia::maplink::earth::GeocentricPoint::toDirection | ( | ) | const |
Convert to a direction
The direction will be calculated as the direction from the origin to this point.
GeocentricDirection envitia::maplink::earth::GeocentricPoint::toDirection | ( | const GeocentricPoint & | origin | ) | const |
Convert to a direction
The direction will be calculated as the direction from the origin to this point.
origin | The origin of the direction |