Go to the documentation of this file.
17 #include "ad/physics/Distance.hpp"
46 inline bool isValid(
GeoEdge const &edge,
bool const logErrors =
true)
58 return degree * M_PI / 180.0;
68 return radians * 180.0 / M_PI;
111 physics::Distance
distance(GeoPoint
const &point, GeoPoint
const &other);
123 physics::Distance
flatDistance(GeoPoint
const &point,
const GeoPoint &other);
139 bool isOnTheLeft(GeoPoint
const &point,
const GeoPoint &pt0,
const GeoPoint &pt1);
namespace ad
Definition: GeometryStoreItem.hpp:28
double degree2radians(double degree)
Convert degrees to radians.
Definition: GeoOperation.hpp:56
::ad::map::point::Latitude latitude
Definition: GeoPoint.hpp:129
bool isOnTheLeft(GeoPoint const &point, const GeoPoint &pt0, const GeoPoint &pt1)
Checks if point is on the left side of the line defined by two points.
double radians2degree(double radians)
Convert radians to degrees.
Definition: GeoOperation.hpp:66
DataType GeoPoint.
Definition: GeoPoint.hpp:47
GeoPoint vectorExtrapolate(GeoPoint const &a, GeoPoint const &b, double const &scalar)
specialization of vectorExtrapolate for GeoPoint
Definition: GeoOperation.hpp:165
::ad::map::point::Longitude longitude
Definition: GeoPoint.hpp:124
physics::Distance distance(BoundingSphere const &left, BoundingSphere const &right)
Computes distance between BoundingSpheres.
Definition: BoundingSphereOperation.hpp:29
GeoPoint createGeoPoint(Longitude const longitude, Latitude const latitude, Altitude const altitude)
create a GeoPoint
Definition: GeoOperation.hpp:98
bool isValid(ECEFPoint const &point, bool const logErrors=true)
checks if the given ECEFPoint is valid
Definition: ECEFOperation.hpp:27
::ad::map::point::Altitude altitude
Definition: GeoPoint.hpp:134
physics::Distance calcLength(ECEFEdge const &edge)
calculate the length of the provided border as distance value
DataType Latitude.
Definition: Latitude.hpp:65
std::vector<::ad::map::point::GeoPoint > GeoEdge
DataType GeoEdge.
Definition: GeoEdge.hpp:42
double toRadians(Latitude const &latitude)
Convert Latitude to radians.
Definition: GeoOperation.hpp:76
GeoPoint zeroAltitude(GeoPoint const &point)
physics::Distance flatDistance(GeoPoint const &point, const GeoPoint &other)
Calculated distance between points not taking in account altitude.
DataType Altitude.
Definition: Altitude.hpp:67
DataType Longitude.
Definition: Longitude.hpp:65
bool haveSameOrientation(const GeoEdge &pts0, const GeoEdge &pts1)
Checks if two GeoEdge have same orientation by taking in account distances between first and last poi...
GeoPoint approxAltitude(GeoPoint const &point, const GeoEdge &pts)
Approximates altitude of the point based on other points.
const Altitude AltitudeUnknown
constant defining the unknown altitude