Holds latitude, longitude and altitude.
More...
#include <position.h>
Holds latitude, longitude and altitude.
- Note
- Instances are immutable
Definition at line 47 of file position.h.
◆ Position() [1/2]
EMANE::Position::Position |
( |
| ) |
|
|
inline |
Creates a Position instance with a latitude, longitude and altitude of 0.
Definition at line 36 of file position.inl.
◆ Position() [2/2]
EMANE::Position::Position |
( |
double |
dLatitudeDegrees, |
|
|
double |
dLongitudeDegrees, |
|
|
double |
dAltitudeMeters |
|
) |
| |
|
inline |
Creates a Position instance
- Parameters
-
dLatitudeDegrees | Latitude in degrees |
dLongitudeDegrees | Longitude in degrees |
dAltitudeMeters | Altitude in meters |
Definition at line 44 of file position.inl.
◆ getAltitudeMeters()
double EMANE::Position::getAltitudeMeters |
( |
| ) |
const |
|
inline |
Gets the altitude in meters
- Returns
- altitude
Definition at line 66 of file position.inl.
◆ getLatitudeDegrees()
double EMANE::Position::getLatitudeDegrees |
( |
| ) |
const |
|
inline |
Gets the latitude in degrees
- Returns
- latitude
Definition at line 54 of file position.inl.
◆ getLatitudeRadians()
double EMANE::Position::getLatitudeRadians |
( |
| ) |
const |
|
inline |
Gets the latitude in radians
- Returns
- latitude
Definition at line 72 of file position.inl.
◆ getLongitudeDegrees()
double EMANE::Position::getLongitudeDegrees |
( |
| ) |
const |
|
inline |
Gets the longitude in degrees
- Returns
- longitude
Definition at line 60 of file position.inl.
◆ getLongitudeRadians()
double EMANE::Position::getLongitudeRadians |
( |
| ) |
const |
|
inline |
Gets the longitude in radians
- Returns
- longitude
Definition at line 78 of file position.inl.
◆ operator!=()
bool EMANE::Position::operator!= |
( |
const Position & |
rhs | ) |
const |
|
inline |
Determines if another instance is not equal
- Returns
- true if not equal, false if equal
Definition at line 93 of file position.inl.
◆ operator==()
bool EMANE::Position::operator== |
( |
const Position & |
rhs | ) |
const |
|
inline |
Determines if another instance is equal
- Returns
- true if equal, false if not
Definition at line 85 of file position.inl.
The documentation for this class was generated from the following files: