Pangolin
Header-only C++20 plane computational geometry library
Loading...
Searching...
No Matches
polyline.hpp File Reference
#include "shape/monotonechain.hpp"
#include <algorithm>
#include <vector>
#include <cassert>
#include <compare>
#include <concepts>
#include <cstddef>
#include <functional>
#include <iterator>
#include <limits>
#include <optional>
#include <ostream>
#include <ranges>
#include <type_traits>
#include <utility>

Go to the source code of this file.

Classes

struct  pgl::Polyline< PointType_, TLabel >
 Open polygonal chain stored in traversal order; may self-intersect. More...
class  pgl::Polyline< PointType_, TLabel >::BoundaryIterator< Oriented >
 Forward iterator over the (optionally oriented) polyline edges. More...

Namespaces

namespace  pgl

Functions

 pgl::Polyline () -> Polyline< Point<>, NoLabel >
template<std::ranges::input_range Range>
requires detail::is_point_v<std::ranges::range_value_t<Range>>
 pgl::Polyline (Range &&) -> Polyline< std::remove_cvref_t< std::ranges::range_value_t< Range > >, NoLabel >
template<class Number>
requires (!detail::is_point_v<Number>)
 pgl::Polyline (std::initializer_list< Number >) -> Polyline< Point< Number >, NoLabel >
template<class PointType, class LabelType, class TranslationNumber, class TranslationLabel>
constexpr auto pgl::operator- (const Polyline< PointType, LabelType > &polyline, const Point< TranslationNumber, TranslationLabel > &translation)
template<class PointType, class LabelType, class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>)
constexpr auto pgl::operator* (const Polyline< PointType, LabelType > &polyline, const Scalar &scalar)
template<class Scalar, class PointType, class LabelType>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>)
constexpr auto pgl::operator* (const Scalar &scalar, const Polyline< PointType, LabelType > &polyline)
template<class PointType, class LabelType, class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>)
constexpr auto pgl::operator/ (const Polyline< PointType, LabelType > &polyline, const Scalar &scalar)
template<class PointType, class LabelType>
std::ostream & pgl::operator<< (std::ostream &stream, const Polyline< PointType, LabelType > &polyline)
 Streams a Polyline as Polyline[(P1),(P2),(P3),...].