Simple Geo-Centric Coordinate (GCC) system data structure. More...
#include <coordinates.h>
Public Member Functions | |
Gcc () | |
Constructor. | |
Gcc (const Gcc &gcc) | |
Copy constructor. | |
Gcc (const double x, const double y, const double z) | |
Constructor. | |
void | Print () const |
Prints data to console window. | |
double | GetMagnitude () const |
Calculates the distance from center of Earth to GCC location. | |
operator Point3D () const | |
Gcc & | operator() (const double x, const double y, const double z) |
Sets the values of x, y, and z. | |
Gcc & | operator= (const Point3D &p3d) |
Sets equal to. | |
Gcc & | operator= (const Gcc &gcc) |
Sets equal to. | |
bool | operator== (const Gcc &gcc) const |
Gcc & | operator<< (const Wgs &wgs) |
Converts the WGS to GCC, and saves it to internal data members. | |
Gcc & | operator<< (const Utm &utm) |
Converts the UTM to GCC, and saves it to internal data members. | |
void | operator>> (Wgs &wgs) const |
Converts to Wgs position data. | |
void | operator>> (Utm &utm) const |
Converts to UTM position data. |
Simple Geo-Centric Coordinate (GCC) system data structure.
GCC position is measured from the center of the earth with a positive X-axis passing through the prime meridian at the equator, positive Y-axis passing through 90 degree east longitude at the equator and a positive Z-axis passing through the north pole.
A distance of one unit measured in GCC coordinates is equal to a distance of 1 meter.
Definition at line 173 of file coordinates.h.
Gcc::Gcc | ( | ) |
Constructor.
Definition at line 1208 of file coordinates.cpp.
Gcc::Gcc | ( | const Gcc & | gcc ) |
Copy constructor.
Definition at line 1219 of file coordinates.cpp.
Gcc::Gcc | ( | const double | x, |
const double | y, | ||
const double | z | ||
) |
Constructor.
x | Distance along X axis. |
y | Distance along Y axis. |
z | Distance along Z axis. |
Definition at line 1233 of file coordinates.cpp.
double Gcc::GetMagnitude | ( | ) | const |
Calculates the distance from center of Earth to GCC location.
Definition at line 1257 of file coordinates.cpp.
CxUtils::Gcc::operator Point3D | ( | ) | const [inline] |
Definition at line 181 of file coordinates.h.
Gcc& CxUtils::Gcc::operator() | ( | const double | x, |
const double | y, | ||
const double | z | ||
) | [inline] |
Sets the values of x, y, and z.
Reimplemented from CxUtils::Point3D.
Definition at line 182 of file coordinates.h.
Converts the WGS to GCC, and saves it to internal data members.
Definition at line 1297 of file coordinates.cpp.
Converts the UTM to GCC, and saves it to internal data members.
Definition at line 1310 of file coordinates.cpp.
Sets equal to.
Reimplemented from CxUtils::Point3D.
Definition at line 1268 of file coordinates.cpp.
Sets equal to.
Definition at line 1282 of file coordinates.cpp.
bool Gcc::operator== | ( | const Gcc & | gcc ) | const |
Definition at line 1348 of file coordinates.cpp.
void Gcc::operator>> | ( | Wgs & | wgs ) | const |
Converts to Wgs position data.
Definition at line 1324 of file coordinates.cpp.
void Gcc::operator>> | ( | Utm & | utm ) | const |
Converts to UTM position data.
Definition at line 1335 of file coordinates.cpp.
void Gcc::Print | ( | ) | const |
Prints data to console window.
Reimplemented from CxUtils::Point3D.
Definition at line 1244 of file coordinates.cpp.