Main MRPT website > C++ reference
MRPT logo
Public Member Functions | Public Attributes

mrpt::topography::TCoords Struct Reference

A coordinate that is stored as a simple "decimal" angle in degrees, but can be retrieved/set in the form of DEGREES + arc-MINUTES + arc-SECONDS. More...

#include <mrpt/topography/data_types.h>

List of all members.

Public Member Functions

 TCoords (const int _deg, const int _min, const double _sec)
 TCoords (const double dec)
 operator double (void) const
 Automatic conversion to a double value (read-only).
 operator double & (void)
 Automatic conversion to a double value (read-only).
void setFromDecimal (const double dec)
 Set from a decimal value (XX.YYYYY) in degrees.
double getDecimalValue () const
 Get the decimal value (XX.YYYYY), in degrees - you can also use the automatic conversion between TCoords and a double.
void getDegMinSec (int &degrees, int &minutes, double &seconds) const
 Return the Deg Min' Sec'' representation of this value.
void setDegMinSec (const int degrees, const int minutes, const double seconds)
 Set the coordinate from its Deg Min' Deg'' parts.
std::string getAsString () const
 Return a string in the format "DEGdeg MIN' SEC''".

Public Attributes

double decimal_value
 Also obtained directly through the double(void) operator using a TCoords anywhere were a double is expected.

Detailed Description

A coordinate that is stored as a simple "decimal" angle in degrees, but can be retrieved/set in the form of DEGREES + arc-MINUTES + arc-SECONDS.

Definition at line 50 of file data_types.h.


Constructor & Destructor Documentation

mrpt::topography::TCoords::TCoords ( const int  _deg,
const int  _min,
const double  _sec 
) [inline]

Definition at line 55 of file data_types.h.

mrpt::topography::TCoords::TCoords ( const double  dec  )  [inline]

Definition at line 56 of file data_types.h.


Member Function Documentation

std::string mrpt::topography::TCoords::getAsString (  )  const [inline]

Return a string in the format "DEGdeg MIN' SEC''".

Definition at line 88 of file data_types.h.

References mrpt::format().

double mrpt::topography::TCoords::getDecimalValue (  )  const [inline]

Get the decimal value (XX.YYYYY), in degrees - you can also use the automatic conversion between TCoords and a double.

Definition at line 68 of file data_types.h.

void mrpt::topography::TCoords::getDegMinSec ( int &  degrees,
int &  minutes,
double &  seconds 
) const [inline]

Return the Deg Min' Sec'' representation of this value.

Definition at line 71 of file data_types.h.

mrpt::topography::TCoords::operator double ( void   )  const [inline]

Automatic conversion to a double value (read-only).

Definition at line 59 of file data_types.h.

mrpt::topography::TCoords::operator double & ( void   )  [inline]

Automatic conversion to a double value (read-only).

Definition at line 62 of file data_types.h.

void mrpt::topography::TCoords::setDegMinSec ( const int  degrees,
const int  minutes,
const double  seconds 
) [inline]

Set the coordinate from its Deg Min' Deg'' parts.

Definition at line 81 of file data_types.h.

void mrpt::topography::TCoords::setFromDecimal ( const double  dec  )  [inline]

Set from a decimal value (XX.YYYYY) in degrees.

Definition at line 65 of file data_types.h.


Member Data Documentation

Also obtained directly through the double(void) operator using a TCoords anywhere were a double is expected.

Definition at line 53 of file data_types.h.

Referenced by mrpt::topography::UTMToGeodetic().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.7.1 for MRPT 0.9.1 SVN:exported at Fri Aug 6 10:31:35 UTC 2010