Go to the documentation of this file.
10 #if !defined(GEOGRAPHICLIB_POLYGONAREA_HPP)
11 #define GEOGRAPHICLIB_POLYGONAREA_HPP 1
64 template <
class GeodType = Geodesic>
86 lon1 <= 0 && lon2 > 0 && lon12 > 0 ? 1 :
87 (lon2 <= 0 && lon1 > 0 && lon12 < 0 ? -1 : 0);
99 #if GEOGRAPHICLIB_CXX11_MATH && GEOGRAPHICLIB_PRECISION != 4
100 using std::remainder;
101 lon1 = remainder(lon1,
real(720)); lon2 = remainder(lon2,
real(720));
102 return ( (lon2 >= 0 && lon2 < 360 ? 0 : 1) -
103 (lon1 >= 0 && lon1 < 360 ? 0 : 1) );
107 return ( ((lon2 >= 0 && lon2 < 360) || lon2 < -360 ? 0 : 1) -
108 ((lon1 >= 0 && lon1 < 360) || lon1 < -360 ? 0 : 1) );
124 ,
_mask(GeodType::LATITUDE | GeodType::LONGITUDE | GeodType::DISTANCE |
126 GeodType::AREA | GeodType::LONG_UNROLL))
290 #endif // GEOGRAPHICLIB_POLYGONAREA_HPP
static T AngNormalize(T x)
Namespace for GeographicLib.
Math::real Flattening() const
const EIGEN_DEVICE_FUNC SignReturnType sign() const
Header for GeographicLib::Rhumb and GeographicLib::RhumbLine classes.
PolygonAreaT< GeodesicExact > PolygonAreaExact
PolygonAreaT< Rhumb > PolygonAreaRhumb
Header for GeographicLib::Accumulator class.
Header for GeographicLib::GeodesicExact class.
EIGEN_STRONG_INLINE EIGEN_DEVICE_FUNC bfloat16 fmod(const bfloat16 &a, const bfloat16 &b)
Point3 cross(const Point3 &p, const Point3 &q, OptionalJacobian< 3, 3 > H1, OptionalJacobian< 3, 3 > H2)
cross product
static T AngDiff(T x, T y, T &e)
static int transitdirect(real lon1, real lon2)
Math::real MajorRadius() const
void AddEdge(real azi, real s)
PolygonAreaT(const GeodType &earth, bool polyline=false)
unsigned TestPoint(real lat, real lon, bool reverse, bool sign, real &perimeter, real &area) const
void AddPoint(real lat, real lon)
unsigned Compute(bool reverse, bool sign, real &perimeter, real &area) const
static int transit(real lon1, real lon2)
void CurrentPoint(real &lat, real &lon) const
void reverse(const MatrixType &m)
Accumulator _perimetersum
PolygonAreaT< Geodesic > PolygonArea
unsigned TestEdge(real azi, real s, bool reverse, bool sign, real &perimeter, real &area) const
Header for GeographicLib::Geodesic class.
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:12:45