Pangolin
Header-only C++20 plane computational geometry library
Loading...
Searching...
No Matches
convex.hpp File Reference
#include "shape/disk.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::Convex< PointType_, TLabel >
 Closed convex polygon stored by its vertices. More...
class  pgl::Convex< PointType_, TLabel >::BoundaryIterator< Oriented >
 Forward iterator over the (optionally oriented) boundary edges. More...

Namespaces

namespace  pgl

Functions

 pgl::Convex () -> Convex< Point<>, NoLabel >
template<std::ranges::input_range Range>
requires detail::is_point_v<std::ranges::range_value_t<Range>>
 pgl::Convex (Range &&) -> Convex< std::remove_cvref_t< std::ranges::range_value_t< Range > >, NoLabel >
template<class Number>
requires (!detail::is_point_v<Number>)
 pgl::Convex (std::initializer_list< Number >) -> Convex< Point< Number >, NoLabel >
template<class Number>
requires (!detail::is_point_v<Number>)
 pgl::Convex (std::initializer_list< Number >, bool) -> Convex< Point< Number >, NoLabel >
template<class PointType, class LabelType, class TranslationNumber, class TranslationLabel>
constexpr auto pgl::operator- (const Convex< PointType, LabelType > &convex, 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 Convex< PointType, LabelType > &convex, 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 Convex< PointType, LabelType > &convex)
template<class PointType, class LabelType, class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>)
constexpr auto pgl::operator/ (const Convex< PointType, LabelType > &convex, const Scalar &scalar)
template<class PointType, class LabelType>
std::ostream & pgl::operator<< (std::ostream &stream, const Convex< PointType, LabelType > &convex)
 Streams a Convex as Convex[(P1),(P2),(P3),(Pn)...].