eckit::geometry::polygon::LonLatPolygon class

Public types

using container_type = std::vector<Point2>

Constructors, destructors, conversion operators

LonLatPolygon(const container_type& points, bool includePoles = true) explicit
template<typename Point2Iterator>
LonLatPolygon(Point2Iterator begin, Point2Iterator end, bool includePoles = true)
LonLatPolygon(const LonLatPolygon&) defaulted
LonLatPolygon(LonLatPolygon&&) defaulted
~LonLatPolygon() defaulted virtual

Public functions

auto operator=(const LonLatPolygon&) -> LonLatPolygon& defaulted
auto operator=(LonLatPolygon&&) -> LonLatPolygon& defaulted
auto max() const -> const Point2&
auto min() const -> const Point2&
auto contains(const Point2& Plonlat, bool normalise_angle = false) const -> bool
Point-in-polygon test based on winding number.
auto operator[](T... args) -> T
auto size(T... args) -> T

Friends

auto operator<<(std::ostream&, const LonLatPolygon&) -> std::ostream&

Function documentation

bool eckit::geometry::polygon::LonLatPolygon::contains(const Point2& Plonlat, bool normalise_angle = false) const

Point-in-polygon test based on winding number.

Parameters
Plonlat
normalise_angle in normalise point angles
Returns if point (lon,lat) is in polygon
This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.