Public Member Functions

CxUtils::Gcc Class Reference

Simple Geo-Centric Coordinate (GCC) system data structure. More...

#include <coordinates.h>

Inheritance diagram for CxUtils::Gcc:
Inheritance graph
[legend]

List of all members.

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
Gccoperator() (const double x, const double y, const double z)
 Sets the values of x, y, and z.
Gccoperator= (const Point3D &p3d)
 Sets equal to.
Gccoperator= (const Gcc &gcc)
 Sets equal to.
bool operator== (const Gcc &gcc) const
Gccoperator<< (const Wgs &wgs)
 Converts the WGS to GCC, and saves it to internal data members.
Gccoperator<< (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.

Detailed Description

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.


Constructor & Destructor Documentation

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.

Parameters:
xDistance along X axis.
yDistance along Y axis.
zDistance along Z axis.

Definition at line 1233 of file coordinates.cpp.


Member Function Documentation

double Gcc::GetMagnitude (  ) const

Calculates the distance from center of Earth to GCC location.

Returns:
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.

Gcc & Gcc::operator<< ( const Wgs wgs )

Converts the WGS to GCC, and saves it to internal data members.

Definition at line 1297 of file coordinates.cpp.

Gcc & Gcc::operator<< ( const Utm utm )

Converts the UTM to GCC, and saves it to internal data members.

Definition at line 1310 of file coordinates.cpp.

Gcc & Gcc::operator= ( const Point3D p3d )

Sets equal to.

Reimplemented from CxUtils::Point3D.

Definition at line 1268 of file coordinates.cpp.

Gcc & Gcc::operator= ( const Gcc gcc )

Sets equal to.

Definition at line 1282 of file coordinates.cpp.

bool Gcc::operator== ( const Gcc gcc ) const
Returns:
True if the values are equal, otherwise false.

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines