atlas
Public Member Functions | List of all members
atlas::util::SphericalPolygon Class Reference
Inheritance diagram for atlas::util::SphericalPolygon:
Inheritance graph
[legend]
Collaboration diagram for atlas::util::SphericalPolygon:
Collaboration graph
[legend]

Public Member Functions

 SphericalPolygon (const PartitionPolygon &)
 
 SphericalPolygon (const std::vector< PointLonLat > &points)
 
bool contains (const Point2 &lonlat) const override
 Point-in-partition test. More...
 
- Public Member Functions inherited from atlas::util::PolygonCoordinates
 PolygonCoordinates (const Polygon &, const atlas::Field &coordinates, bool removeAlignedPoints)
 
template<typename PointContainer >
 PolygonCoordinates (const PointContainer &points)
 
template<typename PointContainer >
 PolygonCoordinates (const PointContainer &points, bool removeAlignedPoints)
 
const Point2 & coordinatesMax () const
 
const Point2 & coordinatesMin () const
 
const Point2 & centroid () const
 
idx_t size () const
 
void print (std::ostream &) const
 

Additional Inherited Members

- Public Types inherited from atlas::util::PolygonCoordinates
using Vector = VectorOfAbstract< PolygonCoordinates >
 
- Protected Attributes inherited from atlas::util::PolygonCoordinates
Point2 coordinatesMin_
 
Point2 coordinatesMax_
 
Point2 centroid_
 
std::vector< Point2 > coordinates_
 

Member Function Documentation

◆ contains()

bool atlas::util::SphericalPolygon::contains ( const Point2 &  P) const
overridevirtual

Point-in-partition test.

Parameters
[in]Pgiven point
Returns
if point is in polygon

Implements atlas::util::PolygonCoordinates.


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