EMANE  1.2.1
EMANE::Position Class Reference

Holds latitude, longitude and altitude. More...

#include <position.h>

Public Member Functions

 Position ()
 
 Position (double dLatitudeDegrees, double dLongitudeDegrees, double dAltitudeMeters)
 
double getLatitudeDegrees () const
 
double getLongitudeDegrees () const
 
double getAltitudeMeters () const
 
double getLatitudeRadians () const
 
double getLongitudeRadians () const
 
bool operator== (const Position &rhs) const
 
bool operator!= (const Position &rhs) const
 

Detailed Description

Holds latitude, longitude and altitude.

Note
Instances are immutable

Definition at line 47 of file position.h.

Constructor & Destructor Documentation

◆ 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
dLatitudeDegreesLatitude in degrees
dLongitudeDegreesLongitude in degrees
dAltitudeMetersAltitude in meters

Definition at line 44 of file position.inl.

Member Function Documentation

◆ 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: