eckit::geo::polygon::Polygon2 class

Public types

using container_type = vector

Constructors, destructors, conversion operators

Polygon2(const container_type& points) explicit
Polygon2(container_type&& points) explicit
Polygon2(const Polygon2&) defaulted
Polygon2(Polygon2&&) defaulted
~Polygon2() defaulted

Public functions

auto operator=(const Polygon2&) -> Polygon2& defaulted
auto operator=(Polygon2&&) -> Polygon2& defaulted
auto operator==(const Polygon2&) const -> bool
auto operator!=(const Polygon2& other) const -> bool
auto contains(const PointXY& P) const -> bool
Point-in-polygon test based on winding number.
void simplify()
Simplify polygon by removing consecutive and colinear points.
auto assign(T... args) -> T
auto at(T... args) -> T
auto back(T... args) -> T
auto begin(T... args) -> T
auto capacity(T... args) -> T
auto cbegin(T... args) -> T
auto cend(T... args) -> T
auto clear(T... args) -> T
auto crbegin(T... args) -> T
auto crend(T... args) -> T
auto data(T... args) -> T
auto emplace(T... args) -> T
auto emplace_back(T... args) -> T
auto empty(T... args) -> T
auto end(T... args) -> T
auto erase(T... args) -> T
auto front(T... args) -> T
auto get_allocator(T... args) -> T
auto insert(T... args) -> T
auto max_size(T... args) -> T
auto operator[](T... args) -> T
auto pop_back(T... args) -> T
auto push_back(T... args) -> T
auto rbegin(T... args) -> T
auto rend(T... args) -> T
auto reserve(T... args) -> T
auto resize(T... args) -> T
auto shrink_to_fit(T... args) -> T
auto size(T... args) -> T
auto swap(T... args) -> T

Friends

auto operator<<(std::ostream& s, const Polygon2& p) -> std::ostream&

Function documentation

bool eckit::geo::polygon::Polygon2::contains(const PointXY& P) const

Point-in-polygon test based on winding number.

Returns if point 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.