A toolkit for working with phylogenetic data.
v0.18.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GeoCoordinate Class Reference

#include <genesis/utils/tools/geodesy.hpp>

Detailed Description

Geographical coordinates in degrees.

Definition at line 46 of file geodesy.hpp.

Public Member Functions

 GeoCoordinate ()=default
 
 GeoCoordinate (double lat, double lon)
 
 GeoCoordinate (GeoCoordinate const &)=default
 
 GeoCoordinate (GeoCoordinate &&)=default
 
 ~GeoCoordinate ()=default
 
double latitude () const
 Latitude, in range [ -90.0, 90.0 ]. More...
 
GeoCoordinatelatitude (double value)
 Latitude, in range [ -90.0, 90.0 ]. More...
 
double longitude () const
 Longitude, in range [ -180.0, 180.0 ]. More...
 
GeoCoordinatelongitude (double value)
 Longitude, in range [ -180.0, 180.0 ]. More...
 
GeoCoordinateoperator= (GeoCoordinate const &)=default
 
GeoCoordinateoperator= (GeoCoordinate &&)=default
 

Constructor & Destructor Documentation

GeoCoordinate ( )
default
GeoCoordinate ( double  lat,
double  lon 
)
inline

Definition at line 56 of file geodesy.hpp.

~GeoCoordinate ( )
default
GeoCoordinate ( GeoCoordinate const &  )
default
GeoCoordinate ( GeoCoordinate &&  )
default

Member Function Documentation

double latitude ( ) const
inline

Latitude, in range [ -90.0, 90.0 ].

Definition at line 77 of file geodesy.hpp.

GeoCoordinate& latitude ( double  value)
inline

Latitude, in range [ -90.0, 90.0 ].

Definition at line 93 of file geodesy.hpp.

double longitude ( ) const
inline

Longitude, in range [ -180.0, 180.0 ].

Definition at line 85 of file geodesy.hpp.

GeoCoordinate& longitude ( double  value)
inline

Longitude, in range [ -180.0, 180.0 ].

Definition at line 105 of file geodesy.hpp.

GeoCoordinate& operator= ( GeoCoordinate const &  )
default
GeoCoordinate& operator= ( GeoCoordinate &&  )
default

The documentation for this class was generated from the following file: