![]() |
Pangolin
Header-only C++20 plane computational geometry library
|
Public declaration of pgl::Line. More...
#include "shape/halfplane.hpp"#include <array>#include <cassert>#include <cmath>#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::Line< PointType_, TLabel > |
| Unoriented infinite line. More... | |
Namespaces | |
| namespace | pgl |
Functions | |
| pgl::Line () -> Line< Point<>, NoLabel > | |
| template<class PointType> | |
| pgl::Line (PointType, PointType) -> Line< PointType, NoLabel > | |
| template<class PointType, class A> | |
| pgl::Line (PointType, PointType, A) -> Line< PointType, std::decay_t< A > > | |
| template<class Number> | |
| pgl::Line (Number, Number, Number, Number) -> Line< Point< Number >, NoLabel > | |
| template<class PointType, class LabelType, class TranslationNumber, class TranslationLabel> | |
| constexpr auto | pgl::operator- (const Line< PointType, LabelType > &line, const Point< TranslationNumber, TranslationLabel > &translation) |
| Translates a line by the opposite of a point. | |
| template<class PointType, class LabelType, class Scalar> requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>) | |
| constexpr auto | pgl::operator* (const Line< PointType, LabelType > &line, const Scalar &scalar) |
| Scales a line by a scalar. | |
| template<class Scalar, class PointType, class LabelType> requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>) | |
| constexpr auto | pgl::operator* (const Scalar &scalar, const Line< PointType, LabelType > &line) |
| Scales a line by a scalar written on the left. | |
| template<class PointType, class LabelType, class Scalar> requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>) | |
| constexpr auto | pgl::operator/ (const Line< PointType, LabelType > &line, const Scalar &scalar) |
| Divides both defining points by a scalar. | |
| template<class PointType, class LabelType> | |
| std::ostream & | pgl::operator<< (std::ostream &stream, const Line< PointType, LabelType > &line) |
| Streams a line as -p--q-. | |
Public declaration of pgl::Line.
Line is the unoriented infinite 1D primitive used by predicates, duality, and intersection routines throughout the library.