![]() |
Pangolin
Header-only C++20 plane computational geometry library
|
Forward iterator over the four corners in counterclockwise order. More...
#include <rectangle.hpp>
Public Types | |
| using | iterator_category = std::forward_iterator_tag |
| using | value_type = PointType |
| using | difference_type = std::ptrdiff_t |
| using | pointer = void |
| using | reference = PointType |
Public Member Functions | |
| constexpr | CornerIterator ()=default |
| constexpr | CornerIterator (const Rectangle *rect, std::size_t index) |
| constexpr PointType | operator* () const |
| constexpr CornerIterator & | operator++ () |
| constexpr CornerIterator | operator++ (int) |
| constexpr bool | operator== (const CornerIterator &) const =default |
Forward iterator over the four corners in counterclockwise order.
Dereferences via Rectangle::operator[], so two of the four corners are synthesized on the fly and yielded by value.
| using pgl::Rectangle< PointType_, TLabel >::CornerIterator::difference_type = std::ptrdiff_t |
| using pgl::Rectangle< PointType_, TLabel >::CornerIterator::iterator_category = std::forward_iterator_tag |
| using pgl::Rectangle< PointType_, TLabel >::CornerIterator::pointer = void |
| using pgl::Rectangle< PointType_, TLabel >::CornerIterator::reference = PointType |
| using pgl::Rectangle< PointType_, TLabel >::CornerIterator::value_type = PointType |
|
constexprdefault |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
constexprdefault |