MRPT
1.9.9
|
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 25 of file data_types.h.
#include <mrpt/topography/data_types.h>
Public Member Functions | |
TCoords (const int _deg, const int _min, const double _sec) | |
TCoords (const double dec) | |
TCoords () | |
operator double (void) const | |
Automatic conversion to a double value (read-only) More... | |
operator double & (void) | |
Automatic conversion to a double value (read-only) More... | |
void | setFromDecimal (const double dec) |
Set from a decimal value (XX.YYYYY) in degrees. More... | |
double | getDecimalValue () const |
Get the decimal value (XX.YYYYY), in degrees - you can also use the automatic conversion between TCoords and a double. More... | |
void | getDegMinSec (int °rees, int &minutes, double &seconds) const |
Return the Deg Min' Sec'' representation of this value. More... | |
void | setDegMinSec (const int degrees, const int minutes, const double seconds) |
Set the coordinate from its Deg Min' Deg'' parts. More... | |
std::string | getAsString () const |
Return a std::string in the format "DEGdeg MIN' SEC''". More... | |
Public Attributes | |
double | decimal_value |
Also obtained directly through the double(void) operator using a TCoords anywhere were a double is expected. More... | |
|
inline |
Definition at line 32 of file data_types.h.
References setDegMinSec().
|
inline |
Definition at line 36 of file data_types.h.
References setFromDecimal().
|
inline |
Definition at line 37 of file data_types.h.
References setFromDecimal().
|
inline |
Return a std::string in the format "DEGdeg MIN' SEC''".
Definition at line 66 of file data_types.h.
References mrpt::format(), getDegMinSec(), and min.
Referenced by mrpt::topography::operator<<().
|
inline |
Get the decimal value (XX.YYYYY), in degrees - you can also use the automatic conversion between TCoords and a double.
Definition at line 46 of file data_types.h.
References decimal_value.
Referenced by mrpt::topography::TGeodeticCoords::isClear().
|
inline |
Return the Deg Min' Sec'' representation of this value.
Definition at line 48 of file data_types.h.
References decimal_value.
Referenced by getAsString().
|
inline |
Automatic conversion to a double value (read-only)
Definition at line 39 of file data_types.h.
References decimal_value.
|
inline |
Automatic conversion to a double value (read-only)
Definition at line 41 of file data_types.h.
References decimal_value.
|
inline |
Set the coordinate from its Deg Min' Deg'' parts.
Definition at line 58 of file data_types.h.
References decimal_value.
Referenced by TCoords().
|
inline |
Set from a decimal value (XX.YYYYY) in degrees.
Definition at line 43 of file data_types.h.
References decimal_value.
Referenced by TCoords().
double mrpt::topography::TCoords::decimal_value |
Also obtained directly through the double(void) operator using a TCoords anywhere were a double is expected.
Definition at line 30 of file data_types.h.
Referenced by getDecimalValue(), getDegMinSec(), operator double(), operator double &(), mrpt::topography::operator==(), setDegMinSec(), setFromDecimal(), and mrpt::topography::UTMToGeodetic().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |