Public Member Functions |
| | DtGeodeticCoord (const DtReferenceEllipsoid *ellipse=DtGlobalEllipsoid()) |
| | default constructor If no reference ellipse is specified, a global one will be used
|
| | DtGeodeticCoord (double lat, double lon, double alt, const DtReferenceEllipsoid *ellipse=DtGlobalEllipsoid()) |
| | constructor Latitude and longitude are specified in radians Altitude is specified in meters If no reference ellipse is specified, a global one will be used
|
| virtual | ~DtGeodeticCoord () |
| | destructor
|
| | DtGeodeticCoord (const DtGeodeticCoord &src) |
| | copy constructor
|
| DtGeodeticCoord & | operator= (const DtGeodeticCoord &src) |
| | assignment operator
|
| virtual DtGeodeticCoord & | setGeocentric (const DtVector &geocentric) |
| | Set from geocentric coordinate (convert geocentric to geodetic).
|
| virtual void | getGeocentric (DtVector &geocentric) const |
| | Get geocentric coordinate equivalent (convert geodetic to geocentric).
|
| virtual DtVector | geocentric () const |
| | Get geocentric coordinate equivalent (convert geodetic to geocentric).
|
| virtual void | printDataToStream (std::ostream &str) const |
| | prints out a formated string to the stream
|
| virtual void | setLat (DtFloat64 lat) |
| | Set/Get the latitude.
|
| virtual DtFloat64 | lat () const |
| virtual void | setLon (DtFloat64 lon) |
| | Set/Get the longitude.
|
| virtual DtFloat64 | lon () const |
| virtual void | setAlt (DtFloat64 alt) |
| | Set/Get the altitude.
|
| virtual DtFloat64 | alt () const |
| virtual const DtMapDatum & | mapDatum () const |
| | DtVector64 () |
| | DtVector64 (const double &x, const double &y, const double &z) |
| | Construct from three doubles.
|
| | ~DtVector64 () |
| | destructor
|
| | DtVector64 (const DtVector64 &vec) |
| | copy constructor
|
| | DtVector64 (const DtVectorT< double > &vec) |
| DtVector64 & | operator= (const DtVector64 &vec) |
| | assignment operator
|
| DtVector64 & | operator= (const DtVectorT< double > &vec) |
| | assignment operator
|
| DtVector64 | crossProduct (const DtVector64 &v) const |
| | Compute cross product with another vector.
|
| DtVector64 & | operator+= (const DtVector64 &other) |
| | adds other to this vector
|
| DtVector64 & | operator-= (const DtVector64 &other) |
| | subtracts other from this vector (this - other)
|
| double | dotProduct (const DtVector64 &v) const |
| | Compute dot product with another vector.
|
| bool | approxEq (const DtVector64 &v, const double &tolerance) const |
| | check if the vector is zero-ed out withing the tolerance passed
|
| | DtVectorT () |
| | DtVectorT (const double &x, const double &y, const double &z) |
| | Construct from three doubles.
|
| | DtVectorT (const DtVectorT< double > &vec) |
| | copy constructor
|
| | ~DtVectorT () |
| | destructor
|
| void | setToZero () |
| | set Vector to all zeros
|
| double & | operator[] (int ind) |
| | Get the value for the specified subscript. (int version)
|
| double | operator[] (int ind) const |
| | A const version to get the value for the specified subscript.
|
| double & | operator[] (DtVectorOffset ind) |
| | Get the value for the specified subscript. (enum version)
|
| double | operator[] (DtVectorOffset ind) const |
| | a const version to get the value for the specified subscript. (enum version)
|
| int | operator== (const DtVectorT< double > &vec) const |
| | Get whether another vector equals this vector.
|
| int | operator!= (const DtVectorT< double > &vec) const |
| | Get whether another vector does not equal this vector.
|
| DtString | string () const |
| | Get a string representation of the vector.
|
| double | magnitudeSquared () const |
| | Get the magnitude of the vector squared, i.e.
|
| void | normalize () |
| | Normalize the vector; i.e., magnitude = 1.
|
| bool | isNormalized () const |
| | Returns true of the vector is Normalized.
|
| bool | magnitudeIsZero () const |
| | check if the magnitude of this vector is zero
|
| bool | magnitudeIsZero (double tolerance) const |
| | check if the magnitude of this vector is zero, within the tolerance passed.
|
| const double & | x () const |
| | gets/sets the x component of a Vector
|
| void | setX (const double &x) |
| | gets/sets the x component of a Vector
|
| const double & | y () const |
| | gets/sets the y component of a Vector
|
| void | setY (const double &y) |
| | gets/sets the y component of a Vector
|
| const double & | z () const |
| | gets/sets the z component of a Vector
|
| void | setZ (const double &z) |
| | gets/sets the z component of a Vector
|
| | operator double * () |
| | operator const double * () const |
Instances of DtGeodeticCoord are used to explicitly represent Geodetic coordinates.