BoosterSeat
0.1
A C++ library that includes common utilities that are used in other projects.
|
A geographical point. More...
#include <geo.hpp>
Public Member Functions | |
Point () | |
Point (double latitude, double longitude) | |
Construct a new geographical point at the given latitude and longitude. More... | |
double | latitude () const |
double | longitude () const |
Point | shootVector (double bearing, double distance_m) const |
Private Attributes | |
double | lat_ |
Latitude in degrees decimal. North is positive, south is negative. More... | |
double | lon_ |
Longitude in degrees decimal. East is positive, west is negative. More... | |
A geographical point.
bst::geo::Point::Point | ( | ) |
bst::geo::Point::Point | ( | double | latitude, |
double | longitude | ||
) |
Construct a new geographical point at the given latitude and longitude.
latitude | The latitude in degrees decimal. |
longitude | The longitude in degrees decimal. |
References bst::GEO_INVALID_LATITUDE, and bst::GEO_INVALID_LONGITUDE.
|
inline |
References lat_.
Referenced by bst::geo::distance(), and TEST().
|
inline |
References lon_.
Referenced by bst::geo::distance(), and TEST().
Point bst::geo::Point::shootVector | ( | double | bearing, |
double | distance_m | ||
) | const |
References Point(), bst::math::D2R, bst::geo::EARTH_RADIUS_KM, lat_, lon_, and bst::math::R2D.
Referenced by TEST().
|
private |
Latitude in degrees decimal. North is positive, south is negative.
Referenced by latitude(), and shootVector().
|
private |
Longitude in degrees decimal. East is positive, west is negative.
Referenced by longitude(), and shootVector().