Pangolin
Header-only C++20 plane computational geometry library
Loading...
Searching...
No Matches
halfplane.hpp File Reference

Public declaration of pgl::Halfplane. More...

#include "shape/orientedsegment.hpp"
#include <array>
#include <cassert>
#include <compare>
#include <concepts>
#include <cstddef>
#include <functional>
#include <optional>
#include <ostream>
#include <type_traits>
#include <utility>
#include <variant>

Go to the source code of this file.

Classes

struct  pgl::Halfplane< PointType_, TLabel >
 Closed half-plane defined by an oriented boundary line. More...

Namespaces

namespace  pgl

Functions

 pgl::Halfplane () -> Halfplane< Point<>, NoLabel >
template<class PointType>
 pgl::Halfplane (PointType, PointType) -> Halfplane< PointType, NoLabel >
template<class PointType, class A>
 pgl::Halfplane (PointType, PointType, A) -> Halfplane< PointType, std::decay_t< A > >
template<class Number>
 pgl::Halfplane (Number, Number, Number, Number) -> Halfplane< Point< Number >, NoLabel >
template<class PointType, class LabelType, class TranslationNumber, class TranslationLabel>
constexpr auto pgl::operator- (const Halfplane< PointType, LabelType > &halfplane, 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 Halfplane< PointType, LabelType > &halfplane, 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 Halfplane< PointType, LabelType > &halfplane)
template<class PointType, class LabelType, class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>)
constexpr auto pgl::operator/ (const Halfplane< PointType, LabelType > &halfplane, const Scalar &scalar)
template<class PointType, class LabelType>
std::ostream & pgl::operator<< (std::ostream &stream, const Halfplane< PointType, LabelType > &halfplane)
 Streams a half-plane as ^-p--q-^.

Detailed Description

Public declaration of pgl::Halfplane.

Halfplane models one side of an oriented line and is the main 2D infinite region used for clipping and side-based predicates.