A library for working with phylogenetic and population genetic data.
v0.32.0
GeoCoordinate Class Reference

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

Detailed Description

Geographical coordinates in degrees.

Definition at line 46 of file geo_coordinate.hpp.

Public Member Functions

 GeoCoordinate ()=default
 
 GeoCoordinate (double lat, double lon)
 
 GeoCoordinate (GeoCoordinate &&)=default
 
 GeoCoordinate (GeoCoordinate const &)=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 &&)=default
 
GeoCoordinateoperator= (GeoCoordinate const &)=default
 

Constructor & Destructor Documentation

◆ GeoCoordinate() [1/4]

GeoCoordinate ( )
default

◆ GeoCoordinate() [2/4]

GeoCoordinate ( double  lat,
double  lon 
)
inline

Definition at line 56 of file geo_coordinate.hpp.

◆ ~GeoCoordinate()

~GeoCoordinate ( )
default

◆ GeoCoordinate() [3/4]

GeoCoordinate ( GeoCoordinate const &  )
default

◆ GeoCoordinate() [4/4]

GeoCoordinate ( GeoCoordinate &&  )
default

Member Function Documentation

◆ latitude() [1/2]

double latitude ( ) const
inline

Latitude, in range [ -90.0, 90.0 ].

Definition at line 77 of file geo_coordinate.hpp.

◆ latitude() [2/2]

GeoCoordinate& latitude ( double  value)
inline

Latitude, in range [ -90.0, 90.0 ].

Definition at line 93 of file geo_coordinate.hpp.

◆ longitude() [1/2]

double longitude ( ) const
inline

Longitude, in range [ -180.0, 180.0 ].

Definition at line 85 of file geo_coordinate.hpp.

◆ longitude() [2/2]

GeoCoordinate& longitude ( double  value)
inline

Longitude, in range [ -180.0, 180.0 ].

Definition at line 105 of file geo_coordinate.hpp.

◆ operator=() [1/2]

GeoCoordinate& operator= ( GeoCoordinate &&  )
default

◆ operator=() [2/2]

GeoCoordinate& operator= ( GeoCoordinate const &  )
default

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