|
| constexpr | Triangle ()=default |
| | Creates the degenerate triangle (0,0),(0,0),(0,0).
|
| constexpr | Triangle (PointType first, PointType second, PointType third) |
| | Creates a triangle from three vertices.
|
| constexpr | Triangle (NumberType x1, NumberType y1, NumberType x2, NumberType y2, NumberType x3, NumberType y3) |
| | Creates a triangle from six coordinates.
|
template<class A>
requires (detail::has_label_v<LabelType> && std::constructible_from<LabelType, A&&>) |
| constexpr | Triangle (PointType first, PointType second, PointType third, A &&label) |
| | Creates a triangle from three vertices and stores a label.
|
template<class A>
requires (detail::has_label_v<LabelType> && std::constructible_from<LabelType, A&&>) |
| constexpr | Triangle (NumberType x1, NumberType y1, NumberType x2, NumberType y2, NumberType x3, NumberType y3, A &&label) |
| | Same as the six-coordinate constructor, and stores a label.
|
template<PointConcept OtherPointType, class OtherLabelType>
requires (std::constructible_from<PointType, const OtherPointType&>) |
| constexpr | Triangle (const Triangle< OtherPointType, OtherLabelType > &other) |
| | Converts a triangle with compatible vertex type.
|
template<PointConcept OtherPointType, class OtherLabelType>
requires (std::constructible_from<PointType, const OtherPointType&>) |
| constexpr Triangle & | operator= (const Triangle< OtherPointType, OtherLabelType > &other) |
| | Assigns from a triangle with compatible vertex type.
|
| constexpr const PointType & | operator[] (std::size_t index) const |
| | Returns vertex 0, 1, or 2.
|
| constexpr const PointType & | get (std::ptrdiff_t index) const |
| | Cyclic access: same as operator[] but index is taken modulo size(); negative indices wrap from the end.
|
| constexpr std::ptrdiff_t | index (const PointType &point) const |
| | Returns the smallest index i with (*this)[i] == point, or -1 if no vertex equals point.
|
| constexpr const PointType & | a () const |
| | Returns the first vertex.
|
| constexpr const PointType & | b () const |
| | Returns the second vertex.
|
| constexpr const PointType & | c () const |
| | Returns the third vertex.
|
| constexpr auto | begin () const |
| | Returns an iterator to the first vertex.
|
| constexpr auto | cbegin () const |
| | Returns an iterator to the first vertex.
|
| constexpr auto | end () const |
| | Returns an iterator past the last vertex.
|
| constexpr auto | cend () const |
| | Returns an iterator past the last vertex.
|
| constexpr bool | operator== (const Triangle &other) const |
| | Compares triangles lexicographically by canonical vertices.
|
| template<AnyShapeConcept OtherShape> |
| constexpr bool | samePointSet (const OtherShape &other) const |
| | Tests whether another shape defines exactly the same point set.
|
| constexpr auto | operator<=> (const Triangle &other) const |
| | Orders triangles lexicographically by their vertices, ignoring the label.
|
template<class A = LabelType>
requires (detail::has_label_v<A>) |
| constexpr A & | label () const |
| | Returns the triangle label.
|
| constexpr NumberType | twiceArea () const |
| | Returns twice the area of the triangle.
|
| template<class ResultNumber = division_result_t<NumberType>> |
| constexpr ResultNumber | area () const |
| | Returns the non-negative area of the triangle.
|
| constexpr bool | isDegenerate () const |
| | Tests whether the three vertices are collinear.
|
| constexpr bool | isPoint () const |
| | Returns whether the triangle collapses to a single point.
|
| constexpr std::optional< PointType > | getIfPoint () const |
| | Returns the point the triangle collapses to, if it does.
|
| constexpr bool | isSegment () const |
| | Returns whether the triangle collapses to a non-degenerate segment.
|
| constexpr std::optional< BoundaryType< false > > | getIfSegment () const |
| | Returns the segment the triangle collapses to, if it does.
|
| constexpr bool | isUndefined () const |
| | Returns whether the triangle is degenerate without collapsing to a point or to a segment.
|
| constexpr Rectangle< PointType > | bbox () const |
| | Returns the axis-aligned bounding box of the vertices.
|
template<class ResultNumber = grid_number_t<typename PointType_::NumberType>>
requires (detail::extended_integral<ResultNumber> || std::same_as<ResultNumber, BigInt>) |
| std::vector< Point< ResultNumber, typename PointType::LabelType > > | latticePoints () const |
| | Returns the integer points the triangle contains.
|
| template<std::floating_point ResultNumber = double> |
| constexpr Rectangle< Point< ResultNumber > > | fbox () const |
| | Returns a floating-point bounding box containing the triangle.
|
| constexpr std::array< PointType, 3 > | vertices () const |
| | Returns the vertices in canonical order.
|
| constexpr std::array< Segment< PointType >, 3 > | edges () const |
| | Returns the three unoriented boundary edges.
|
| constexpr EdgeIterator | edgesBegin () const |
| | Returns an iterator to the first unoriented edge.
|
| constexpr EdgeIterator | edgesEnd () const |
| | Returns an iterator past the last unoriented edge.
|
| constexpr std::array< OrientedSegment< PointType >, 3 > | orientedEdges () const |
| | Returns the three oriented boundary edges.
|
| constexpr OrientedEdgeIterator | orientedEdgesBegin () const |
| | Returns an iterator to the first oriented edge.
|
| constexpr OrientedEdgeIterator | orientedEdgesEnd () const |
| | Returns an iterator past the last oriented edge.
|
| constexpr | operator Convex< PointType > () const |
| | Converts the triangle to a convex polygon.
|
| constexpr Convex< PointType > | asConvex () const |
| | Returns the triangle as a convex polygon.
|
| constexpr Convex< PointType > | convexHull () const |
| | Returns the convex hull of the triangle's vertices.
|
| constexpr HalfplaneIntersection< PointType > | asHalfplaneIntersection () const |
| | Returns the triangle as a half-plane intersection.
|
| constexpr | operator Polygon< PointType > () const |
| | Converts the triangle to a simple polygon.
|
| constexpr Polygon< PointType > | asPolygon () const |
| | Returns the triangle as a simple polygon.
|
| constexpr PolygonWithHoles< PointType > | asPolygonWithHoles () const |
| | Returns the triangle as a hole-free region.
|
| constexpr PolygonSet< PointType > | asPolygonSet () const |
| | Returns the triangle as a one-component set of regions.
|
| constexpr Triangle | rotated90 (int k=1) const |
| | Returns the triangle rotated by 90k degrees around the origin.
|
| constexpr void | rotate90 (int k=1) |
| | Rotates the triangle by 90k degrees around the origin in place.
|
| template<class OtherNumber> |
| constexpr Triangle | scaledUpX (const OtherNumber scalar) const |
| | Returns the triangle with its x-coordinates multiplied by a factor.
|
| template<class OtherNumber> |
| constexpr void | scaleUpX (const OtherNumber scalar) |
| | Multiplies the triangle's x-coordinates by a factor in place.
|
| template<class OtherNumber> |
| constexpr Triangle | scaledUpY (const OtherNumber scalar) const |
| | Returns the triangle with its y-coordinates multiplied by a factor.
|
| template<class OtherNumber> |
| constexpr void | scaleUpY (const OtherNumber scalar) |
| | Multiplies the triangle's y-coordinates by a factor in place.
|
| template<class OtherNumber> |
| constexpr Triangle | scaledDownX (const OtherNumber scalar) const |
| | Returns the triangle with its x-coordinates divided by a divisor.
|
| template<class OtherNumber> |
| constexpr void | scaleDownX (const OtherNumber scalar) |
| | Divides the triangle's x-coordinates by a divisor in place.
|
| template<class OtherNumber> |
| constexpr Triangle | scaledDownY (const OtherNumber scalar) const |
| | Returns the triangle with its y-coordinates divided by a divisor.
|
| template<class OtherNumber> |
| constexpr void | scaleDownY (const OtherNumber scalar) |
| | Divides the triangle's y-coordinates by a divisor in place.
|
| template<class ResultNumber = division_result_t<NumberType>> |
| constexpr Point< ResultNumber > | centroid () const |
| | Returns the arithmetic centroid.
|
| constexpr Disk< PointType, NoLabel > | circumcircle () const |
| | Returns the circumcircle of the triangle.
|
| constexpr Segment< PointType > | diameter () const |
| | Returns a segment defining the diameter.
|
| template<class ResultNumber = division_result_t<NumberType>> |
| constexpr Point< ResultNumber > | pointInside () const |
| | Returns a point inside the triangle.
|
| template<class OtherShape> |
| constexpr bool | pointInsideInteriorContainedIn (const OtherShape &shape) const |
| | Tests whether some point in this shape's relative interior lies in the strict interior of shape.
|
| constexpr bool | isRectangle () const |
| | Tests whether the triangle has a right angle.
|
| constexpr bool | isObtuse () const |
| | Tests whether the triangle has an obtuse angle.
|
| constexpr bool | isIsosceles () const |
| | Tests whether two sides have the same length.
|
| template<PointConcept OtherPoint> |
| constexpr bool | verticesContain (const OtherPoint &point) const |
| | Tests whether a point equals one of the vertices.
|
| template<PointConcept OtherPoint> |
| constexpr bool | boundaryContains (const OtherPoint &point) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<SegmentConcept OtherSegment> |
| constexpr bool | boundaryContains (const OtherSegment &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<OrientedSegmentConcept OtherOrientedSegment> |
| constexpr bool | boundaryContains (const OtherOrientedSegment &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<LineConcept OtherLine> |
| constexpr bool | boundaryContains (const OtherLine &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<OrientedLineConcept OtherOrientedLine> |
| constexpr bool | boundaryContains (const OtherOrientedLine &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<RayConcept OtherRay> |
| constexpr bool | boundaryContains (const OtherRay &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<HalfplaneConcept OtherHalfplane> |
| constexpr bool | boundaryContains (const OtherHalfplane &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<RectangleConcept OtherRectangle> |
| constexpr bool | boundaryContains (const OtherRectangle &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<TriangleConcept OtherTriangle> |
| constexpr bool | boundaryContains (const OtherTriangle &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<PointConcept OtherPoint> |
| constexpr bool | contains (const OtherPoint &point) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<SegmentConcept OtherSegment> |
| constexpr bool | contains (const OtherSegment &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<OrientedSegmentConcept OtherOrientedSegment> |
| constexpr bool | contains (const OtherOrientedSegment &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<LineConcept OtherLine> |
| constexpr bool | contains (const OtherLine &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<OrientedLineConcept OtherOrientedLine> |
| constexpr bool | contains (const OtherOrientedLine &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<RayConcept OtherRay> |
| constexpr bool | contains (const OtherRay &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<HalfplaneConcept OtherHalfplane> |
| constexpr bool | contains (const OtherHalfplane &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<RectangleConcept OtherRectangle> |
| constexpr bool | contains (const OtherRectangle &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<TriangleConcept OtherTriangle> |
| constexpr bool | contains (const OtherTriangle &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<ConvexConcept OtherConvex> |
| constexpr bool | contains (const OtherConvex &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<PolygonConcept OtherPolygon> |
| constexpr bool | contains (const OtherPolygon &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<DiskConcept OtherDisk> |
| constexpr bool | contains (const OtherDisk &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| constexpr bool | contains (const Shape< PointType > &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| constexpr bool | boundaryContains (const Shape< PointType > &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<class EmptyPoint> |
| constexpr bool | contains (const EmptyShape< EmptyPoint > &) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<class EmptyPoint> |
| constexpr bool | boundaryContains (const EmptyShape< EmptyPoint > &) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<class EmptyPoint> |
| constexpr bool | interiorContains (const EmptyShape< EmptyPoint > &) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<class EmptyPoint> |
| constexpr bool | separates (const EmptyShape< EmptyPoint > &) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<PointConcept OtherPoint> |
| constexpr bool | interiorContains (const OtherPoint &point) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<SegmentConcept OtherSegment> |
| constexpr bool | interiorContains (const OtherSegment &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<OrientedSegmentConcept OtherOrientedSegment> |
| constexpr bool | interiorContains (const OtherOrientedSegment &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<LineConcept OtherLine> |
| constexpr bool | interiorContains (const OtherLine &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<OrientedLineConcept OtherOrientedLine> |
| constexpr bool | interiorContains (const OtherOrientedLine &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<RayConcept OtherRay> |
| constexpr bool | interiorContains (const OtherRay &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<HalfplaneConcept OtherHalfplane> |
| constexpr bool | interiorContains (const OtherHalfplane &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<RectangleConcept OtherRectangle> |
| constexpr bool | interiorContains (const OtherRectangle &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<TriangleConcept OtherTriangle> |
| constexpr bool | interiorContains (const OtherTriangle &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<PointConcept OtherPoint> |
| constexpr bool | intersects (const OtherPoint &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<LineConcept OtherLine> |
| constexpr bool | intersects (const OtherLine &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<OrientedLineConcept OtherOrientedLine> |
| constexpr bool | intersects (const OtherOrientedLine &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<SegmentConcept OtherSegment> |
| constexpr bool | intersects (const OtherSegment &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<OrientedSegmentConcept OtherOrientedSegment> |
| constexpr bool | intersects (const OtherOrientedSegment &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<RayConcept OtherRay> |
| constexpr bool | intersects (const OtherRay &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<HalfplaneConcept OtherHalfplane> |
| constexpr bool | intersects (const OtherHalfplane &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<RectangleConcept OtherRectangle> |
| constexpr bool | intersects (const OtherRectangle &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<TriangleConcept OtherTriangle> |
| constexpr bool | intersects (const OtherTriangle &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| constexpr bool | intersects (const Shape< PointType > &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
template<typename OtherShape>
requires (!PointConcept<OtherShape> && detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) |
| constexpr bool | intersects (const OtherShape &other) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<class EmptyPoint> |
| constexpr bool | intersects (const EmptyShape< EmptyPoint > &) const |
| | Tests whether this shape and the other shape intersect (A ∩ B ≠ ∅).
|
| template<PointConcept OtherPoint> |
| constexpr bool | interiorsIntersect (const OtherPoint &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<LineConcept OtherLine> |
| constexpr bool | interiorsIntersect (const OtherLine &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<OrientedLineConcept OtherOrientedLine> |
| constexpr bool | interiorsIntersect (const OtherOrientedLine &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<SegmentConcept OtherSegment> |
| constexpr bool | interiorsIntersect (const OtherSegment &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<OrientedSegmentConcept OtherOrientedSegment> |
| constexpr bool | interiorsIntersect (const OtherOrientedSegment &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<RayConcept OtherRay> |
| constexpr bool | interiorsIntersect (const OtherRay &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<HalfplaneConcept OtherHalfplane> |
| constexpr bool | interiorsIntersect (const OtherHalfplane &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<RectangleConcept OtherRectangle> |
| constexpr bool | interiorsIntersect (const OtherRectangle &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<TriangleConcept OtherTriangle> |
| constexpr bool | interiorsIntersect (const OtherTriangle &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
template<typename OtherShape>
requires (!PointConcept<OtherShape> && detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) |
| constexpr bool | interiorsIntersect (const OtherShape &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<class EmptyPoint> |
| constexpr bool | interiorsIntersect (const EmptyShape< EmptyPoint > &) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| constexpr bool | interiorsIntersect (const Shape< PointType > &other) const |
| | Tests whether the interiors of the two shapes intersect ((A∖∂A) ∩ (B∖∂B) ≠ ∅).
|
| template<SegmentConcept OtherSegment> |
| constexpr bool | separates (const OtherSegment &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<PointConcept OtherPoint> |
| constexpr bool | separates (const OtherPoint &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<OrientedSegmentConcept OtherOrientedSegment> |
| constexpr bool | separates (const OtherOrientedSegment &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<LineConcept OtherLine> |
| constexpr bool | separates (const OtherLine &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<OrientedLineConcept OtherOrientedLine> |
| constexpr bool | separates (const OtherOrientedLine &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<RayConcept OtherRay> |
| constexpr bool | separates (const OtherRay &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<HalfplaneConcept OtherHalfplane> |
| constexpr bool | separates (const OtherHalfplane &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<RectangleConcept OtherRectangle> |
| constexpr bool | separates (const OtherRectangle &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<TriangleConcept OtherTriangle> |
| constexpr bool | separates (const OtherTriangle &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<ConvexConcept OtherConvex> |
| constexpr bool | separates (const OtherConvex &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<DiskConcept OtherDisk> |
| constexpr bool | separates (const OtherDisk &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<PolygonConcept OtherPolygon> |
| constexpr bool | separates (const OtherPolygon &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<MonotoneChainConcept OtherChain> |
| constexpr bool | contains (const OtherChain &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<MonotoneChainConcept OtherChain> |
| constexpr bool | boundaryContains (const OtherChain &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<MonotoneChainConcept OtherChain> |
| constexpr bool | interiorContains (const OtherChain &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<MonotoneChainConcept OtherChain> |
| constexpr bool | separates (const OtherChain &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<PolylineConcept OtherPolyline> |
| constexpr bool | contains (const OtherPolyline &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<PolylineConcept OtherPolyline> |
| constexpr bool | boundaryContains (const OtherPolyline &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<PolylineConcept OtherPolyline> |
| constexpr bool | interiorContains (const OtherPolyline &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<PolylineConcept OtherPolyline> |
| constexpr bool | separates (const OtherPolyline &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<HalfplaneIntersectionConcept OtherRegion> |
| constexpr bool | contains (const OtherRegion &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<HalfplaneIntersectionConcept OtherRegion> |
| constexpr bool | boundaryContains (const OtherRegion &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<HalfplaneIntersectionConcept OtherRegion> |
| constexpr bool | interiorContains (const OtherRegion &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<HalfplaneIntersectionConcept OtherRegion> |
| constexpr bool | separates (const OtherRegion &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<PolygonWithHolesConcept OtherRegion> |
| constexpr bool | contains (const OtherRegion &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<PolygonWithHolesConcept OtherRegion> |
| constexpr bool | boundaryContains (const OtherRegion &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<PolygonWithHolesConcept OtherRegion> |
| constexpr bool | interiorContains (const OtherRegion &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<PolygonWithHolesConcept OtherRegion> |
| bool | separates (const OtherRegion &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<PolygonSetConcept OtherSet> |
| constexpr bool | contains (const OtherSet &other) const |
| | Tests whether this shape contains the other shape (A ⊇ B).
|
| template<PolygonSetConcept OtherSet> |
| constexpr bool | boundaryContains (const OtherSet &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<PolygonSetConcept OtherSet> |
| constexpr bool | interiorContains (const OtherSet &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<PolygonSetConcept OtherSet> |
| bool | separates (const OtherSet &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| constexpr bool | separates (const Shape< PointType > &other) const |
| | Tests whether removing this shape disconnects the other shape (B∖A is disconnected).
|
| template<DiskConcept OtherDisk> |
| constexpr bool | boundaryContains (const OtherDisk &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<ConvexConcept OtherConvex> |
| constexpr bool | boundaryContains (const OtherConvex &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<PolygonConcept OtherPolygon> |
| constexpr bool | boundaryContains (const OtherPolygon &other) const |
| | Tests whether this shape's boundary contains the other shape (∂A ⊇ B).
|
| template<DiskConcept OtherDisk> |
| constexpr bool | interiorContains (const OtherDisk &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<ConvexConcept OtherConvex> |
| constexpr bool | interiorContains (const OtherConvex &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<PolygonConcept OtherPolygon> |
| constexpr bool | interiorContains (const OtherPolygon &other) const |
| | Tests whether this shape's interior contains the other shape (A∖∂A ⊇ B).
|
| template<SegmentConcept OtherSegment> |
| constexpr bool | crosses (const OtherSegment &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<PointConcept OtherPoint> |
| constexpr bool | crosses (const OtherPoint &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<OrientedSegmentConcept OtherOrientedSegment> |
| constexpr bool | crosses (const OtherOrientedSegment &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<LineConcept OtherLine> |
| constexpr bool | crosses (const OtherLine &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<OrientedLineConcept OtherOrientedLine> |
| constexpr bool | crosses (const OtherOrientedLine &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<RayConcept OtherRay> |
| constexpr bool | crosses (const OtherRay &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<HalfplaneConcept OtherHalfplane> |
| constexpr bool | crosses (const OtherHalfplane &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<RectangleConcept OtherRectangle> |
| constexpr bool | crosses (const OtherRectangle &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<TriangleConcept OtherTriangle> |
| constexpr bool | crosses (const OtherTriangle &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
template<typename OtherShape>
requires (!PointConcept<OtherShape> && detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) |
| constexpr bool | crosses (const OtherShape &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<class EmptyPoint> |
| constexpr bool | crosses (const EmptyShape< EmptyPoint > &) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| constexpr bool | crosses (const Shape< PointType > &other) const |
| | Tests whether the two shapes mutually separate each other (each disconnects the other).
|
| template<class ResultNumber = NumberType, PointConcept OtherPoint> |
| constexpr std::optional< Point< ResultNumber, typename PointType::LabelType > > | intersection (const OtherPoint &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
| template<class ResultNumber = division_result_t<NumberType>, LineConcept OtherLine> |
| constexpr std::optional< std::variant< Point< ResultNumber, typename PointType::LabelType >, Segment< Point< ResultNumber, typename PointType::LabelType > > > > | intersection (const OtherLine &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedLineConcept OtherOrientedLine> |
| constexpr std::optional< std::variant< Point< ResultNumber, typename PointType::LabelType >, Segment< Point< ResultNumber, typename PointType::LabelType > > > > | intersection (const OtherOrientedLine &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
| template<class ResultNumber = division_result_t<NumberType>, SegmentConcept OtherSegment> |
| constexpr std::optional< std::variant< Point< ResultNumber, typename PointType::LabelType >, Segment< Point< ResultNumber, typename PointType::LabelType > > > > | intersection (const OtherSegment &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedSegmentConcept OtherOrientedSegment> |
| constexpr std::optional< std::variant< Point< ResultNumber, typename PointType::LabelType >, Segment< Point< ResultNumber, typename PointType::LabelType > > > > | intersection (const OtherOrientedSegment &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
| template<class ResultNumber = division_result_t<NumberType>, RayConcept OtherRay> |
| constexpr std::optional< std::variant< Point< ResultNumber, typename PointType::LabelType >, Segment< Point< ResultNumber, typename PointType::LabelType > > > > | intersection (const OtherRay &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
| template<class ResultNumber = division_result_t<NumberType>, HalfplaneConcept OtherHalfplane> |
| constexpr auto | intersection (const OtherHalfplane &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
| template<class ResultNumber = NumberType, HalfplaneIntersectionConcept OtherRegion> |
| constexpr auto | intersection (const OtherRegion &other) const |
| | Adds this triangle's three constraints to a half-plane intersection without deriving vertices.
|
| template<class ResultNumber = division_result_t<NumberType>, RectangleConcept OtherRectangle> |
| constexpr auto | intersection (const OtherRectangle &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
| template<class ResultNumber = division_result_t<NumberType>, TriangleConcept OtherTriangle> |
| constexpr auto | intersection (const OtherTriangle &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires (!PointConcept<OtherShape> && !HalfplaneIntersectionConcept<OtherShape> && (detail::shapeRank<OtherShape>
> detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self) { o.template intersection
<ResultNumber>(self); }) |
| constexpr auto | intersection (const OtherShape &other) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires (!PointConcept<OtherShape> && (detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) && requires(const OtherShape&
o, const Triangle& self) { o.template regularizedIntersection<ResultNumber>(self); }) |
| constexpr auto | regularizedIntersection (const OtherShape &other) const |
| | Forwards a regularized intersection to the shape that owns it.
|
| template<class ResultNumber = NumberType, class EmptyPoint> |
| constexpr EmptyShape< EmptyPoint > | intersection (const EmptyShape< EmptyPoint > &) const |
| | Returns the intersection of the two shapes (A ∩ B), empty when they are disjoint.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| constexpr auto | squaredDistance (const OtherPoint &point) const |
| | Returns the squared Euclidean distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, SegmentConcept OtherSegment> |
| constexpr auto | squaredDistance (const OtherSegment &other) const |
| | Returns the squared Euclidean distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedSegmentConcept OtherOrientedSegment> |
| constexpr auto | squaredDistance (const OtherOrientedSegment &other) const |
| | Returns the squared Euclidean distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, LineConcept OtherLine> |
| constexpr auto | squaredDistance (const OtherLine &other) const |
| | Returns the squared Euclidean distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedLineConcept OtherOrientedLine> |
| constexpr auto | squaredDistance (const OtherOrientedLine &other) const |
| | Returns the squared Euclidean distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, RayConcept OtherRay> |
| constexpr auto | squaredDistance (const OtherRay &other) const |
| | Returns the squared Euclidean distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, HalfplaneConcept OtherHalfplane> |
| constexpr auto | squaredDistance (const OtherHalfplane &other) const |
| | Returns the squared Euclidean distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, RectangleConcept OtherRectangle> |
| constexpr auto | squaredDistance (const OtherRectangle &other) const |
| | Returns the squared Euclidean distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, TriangleConcept OtherTriangle> |
| constexpr auto | squaredDistance (const OtherTriangle &other) const |
| | Returns the squared Euclidean distance to the given shape.
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires ((detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self)
{ o.template squaredDistance<ResultNumber>(self); }) |
| constexpr auto | squaredDistance (const OtherShape &other) const |
| | Returns the squared Euclidean distance to the given shape.
|
| template<class ResultNumber = double, class DiskPointType, class DiskLabel> |
| detail::floating_result_t< ResultNumber > | squaredDistance (const Disk< DiskPointType, DiskLabel > &disk) const |
| | Returns the squared Euclidean distance to a disk.
|
template<class ResultNumber = NumberType, BoundedPolygonalConcept OtherShape>
requires detail::ClosestPairConcept<Triangle<PointType_, TLabel>, OtherShape> |
| constexpr auto | closestSegments (const OtherShape &other) const |
| | Returns the pair of elements realizing the distance, nothing when the shapes meet.
|
template<class ResultNumber = division_result_t<NumberType>, class OtherShape>
requires detail::ClosestPointsPairConcept<Triangle<PointType_, TLabel>, OtherShape> |
| constexpr auto | closestPoints (const OtherShape &other) const |
| | Returns the pair of points realizing the distance, nothing when the shapes meet.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| constexpr auto | distanceL1 (const OtherPoint &point) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, SegmentConcept OtherSegment> |
| constexpr auto | distanceL1 (const OtherSegment &other) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedSegmentConcept OtherOrientedSegment> |
| constexpr auto | distanceL1 (const OtherOrientedSegment &other) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, LineConcept OtherLine> |
| constexpr auto | distanceL1 (const OtherLine &other) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedLineConcept OtherOrientedLine> |
| constexpr auto | distanceL1 (const OtherOrientedLine &other) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, RayConcept OtherRay> |
| constexpr auto | distanceL1 (const OtherRay &other) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, HalfplaneConcept OtherHalfplane> |
| constexpr auto | distanceL1 (const OtherHalfplane &other) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, RectangleConcept OtherRectangle> |
| constexpr auto | distanceL1 (const OtherRectangle &other) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, TriangleConcept OtherTriangle> |
| constexpr auto | distanceL1 (const OtherTriangle &other) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires ((detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self)
{ o.template distanceL1<ResultNumber>(self); }) |
| constexpr auto | distanceL1 (const OtherShape &other) const |
| | Returns the Manhattan (L1) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| constexpr auto | intersection (const Shape< OtherPoint > &other) const |
| | Returns the intersection of the two shapes (A ∩ B), re-dispatching through the wrapper's own intersection.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| auto | regularizedIntersection (const Shape< OtherPoint > &other) const |
| | Re-dispatches a regularized intersection through a runtime shape.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| auto | regularizedUnion (const Shape< OtherPoint > &other) const |
| | Returns the regularized union of the two shapes (A ∪ B), re-dispatching through the wrapper's own regularizedUnion.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| auto | difference (const Shape< OtherPoint > &other) const |
| | Returns the regularized set difference of the two shapes (A ∖ B), re-dispatching through the wrapper's own difference.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| auto | symmetricDifference (const Shape< OtherPoint > &other) const |
| | Returns the regularized symmetric difference of the two shapes (A △ B), re-dispatching through the wrapper's own symmetricDifference.
|
| template<class ResultNumber = double, PointConcept OtherPoint> |
| constexpr auto | distanceL1 (const Shape< OtherPoint > &other) const |
| | Returns the distance to the given shape, using symmetry to re-dispatch through the wrapper's own distanceL1.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| constexpr auto | distanceLInf (const OtherPoint &point) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, SegmentConcept OtherSegment> |
| constexpr auto | distanceLInf (const OtherSegment &other) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedSegmentConcept OtherOrientedSegment> |
| constexpr auto | distanceLInf (const OtherOrientedSegment &other) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, LineConcept OtherLine> |
| constexpr auto | distanceLInf (const OtherLine &other) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedLineConcept OtherOrientedLine> |
| constexpr auto | distanceLInf (const OtherOrientedLine &other) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, RayConcept OtherRay> |
| constexpr auto | distanceLInf (const OtherRay &other) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, HalfplaneConcept OtherHalfplane> |
| constexpr auto | distanceLInf (const OtherHalfplane &other) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, RectangleConcept OtherRectangle> |
| constexpr auto | distanceLInf (const OtherRectangle &other) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, TriangleConcept OtherTriangle> |
| constexpr auto | distanceLInf (const OtherTriangle &other) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires ((detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self)
{ o.template distanceLInf<ResultNumber>(self); }) |
| constexpr auto | distanceLInf (const OtherShape &other) const |
| | Returns the Chebyshev (LInf) distance to the given shape.
|
| template<class ResultNumber = double, PointConcept OtherPoint> |
| constexpr auto | distanceLInf (const Shape< OtherPoint > &other) const |
| | Returns the distance to the given shape, using symmetry to re-dispatch through the wrapper's own distanceLInf.
|
| template<class ResultNumber = NumberType, PointConcept OtherPoint> |
| constexpr auto | hausdorffDistanceL1 (const OtherPoint &point) const |
| | Returns the Manhattan (L1) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, SegmentConcept OtherSegment> |
| constexpr auto | hausdorffDistanceL1 (const OtherSegment &other) const |
| | Returns the Manhattan (L1) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedSegmentConcept OtherOrientedSegment> |
| constexpr auto | hausdorffDistanceL1 (const OtherOrientedSegment &other) const |
| | Returns the Manhattan (L1) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, RectangleConcept OtherRectangle> |
| constexpr auto | hausdorffDistanceL1 (const OtherRectangle &other) const |
| | Returns the Manhattan (L1) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, TriangleConcept OtherTriangle> |
| constexpr auto | hausdorffDistanceL1 (const OtherTriangle &other) const |
| | Returns the Manhattan (L1) Hausdorff distance to the given shape.
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires ((detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self)
{ o.template hausdorffDistanceL1<ResultNumber>(self); }) |
| constexpr auto | hausdorffDistanceL1 (const OtherShape &other) const |
| | Returns the Manhattan (L1) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| constexpr auto | hausdorffDistanceL1 (const Shape< OtherPoint > &other) const |
| | Returns the distance to the given shape, using symmetry to re-dispatch through the wrapper's own hausdorffDistanceL1.
|
| template<class ResultNumber = NumberType, PointConcept OtherPoint> |
| constexpr auto | hausdorffDistanceLInf (const OtherPoint &point) const |
| | Returns the Chebyshev (LInf) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, SegmentConcept OtherSegment> |
| constexpr auto | hausdorffDistanceLInf (const OtherSegment &other) const |
| | Returns the Chebyshev (LInf) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedSegmentConcept OtherOrientedSegment> |
| constexpr auto | hausdorffDistanceLInf (const OtherOrientedSegment &other) const |
| | Returns the Chebyshev (LInf) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, RectangleConcept OtherRectangle> |
| constexpr auto | hausdorffDistanceLInf (const OtherRectangle &other) const |
| | Returns the Chebyshev (LInf) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, TriangleConcept OtherTriangle> |
| constexpr auto | hausdorffDistanceLInf (const OtherTriangle &other) const |
| | Returns the Chebyshev (LInf) Hausdorff distance to the given shape.
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires ((detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self)
{ o.template hausdorffDistanceLInf<ResultNumber>(self); }) |
| constexpr auto | hausdorffDistanceLInf (const OtherShape &other) const |
| | Returns the Chebyshev (LInf) Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, PointConcept OtherPoint> |
| constexpr auto | hausdorffDistanceLInf (const Shape< OtherPoint > &other) const |
| | Returns the distance to the given shape, using symmetry to re-dispatch through the wrapper's own hausdorffDistanceLInf.
|
| template<class ResultNumber = NumberType, PointConcept OtherPoint> |
| constexpr auto | squaredHausdorffDistance (const OtherPoint &point) const |
| | Returns the squared Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, SegmentConcept OtherSegment> |
| constexpr auto | squaredHausdorffDistance (const OtherSegment &other) const |
| | Returns the squared Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, OrientedSegmentConcept OtherOrientedSegment> |
| constexpr auto | squaredHausdorffDistance (const OtherOrientedSegment &other) const |
| | Returns the squared Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, RectangleConcept OtherRectangle> |
| constexpr auto | squaredHausdorffDistance (const OtherRectangle &other) const |
| | Returns the squared Hausdorff distance to the given shape.
|
| template<class ResultNumber = division_result_t<NumberType>, TriangleConcept OtherTriangle> |
| constexpr auto | squaredHausdorffDistance (const OtherTriangle &other) const |
| | Returns the squared Hausdorff distance to the given shape.
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires ((detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self)
{ o.template squaredHausdorffDistance<ResultNumber>(self); }) |
| constexpr auto | squaredHausdorffDistance (const OtherShape &other) const |
| | Returns the squared Hausdorff distance to the given shape.
|
template<class OtherShape>
requires MinkowskiSummableConcept<Triangle<PointType_, TLabel>, OtherShape> |
| constexpr auto | minkowskiSum (const OtherShape &other) const |
| | Returns the Minkowski sum of this shape and another (A ⊕ B).
|
template<class OtherShape>
requires MinkowskiSummableConcept<Triangle<PointType_, TLabel>, OtherShape> |
| constexpr auto | minkowskiErosion (const OtherShape &other) const |
| | Returns the Minkowski erosion of this shape by another (A ⊖ B).
|
template<class OtherShape>
requires (!MinkowskiSummableConcept<Triangle<PointType_, TLabel>, OtherShape> && BoundedPolygonalConcept<OtherShape>) |
| constexpr auto | minkowskiErosion (const OtherShape &other) const |
| | Returns the Minkowski erosion of this shape by a bounded polygonal one (A ⊖ B).
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires (!MinkowskiSummableConcept<Triangle<PointType_, TLabel>, OtherShape> && (detail::shapeRank<OtherShape>
> detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self) { o.template minkowskiSum
<ResultNumber>(self); }) |
| auto | minkowskiSum (const OtherShape &other) const |
| | Returns the regularized Minkowski sum of the two shapes (A ⊕ B).
|
| template<class ResultNumber = division_result_t<NumberType>, TriangleConcept OtherTriangle> |
| PolygonSet< Point< ResultNumber, typename PointType::LabelType > > | regularizedUnion (const OtherTriangle &other) const |
| | Returns the regularized union of the two shapes (A ∪ B).
|
| template<class ResultNumber = division_result_t<NumberType>, RectangleConcept OtherRectangle> |
| PolygonSet< Point< ResultNumber, typename PointType::LabelType > > | regularizedUnion (const OtherRectangle &other) const |
| | Returns the regularized union of the two shapes (A ∪ B).
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires ((detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self)
{ o.template regularizedUnion<ResultNumber>(self); }) |
| auto | regularizedUnion (const OtherShape &other) const |
| | Returns the regularized union of the two shapes (A ∪ B).
|
| template<class ResultNumber = division_result_t<NumberType>, PolygonalRegionConcept OtherRegion> |
| PolygonSet< Point< ResultNumber, typename PointType::LabelType > > | difference (const OtherRegion &other) const |
| | Returns the regularized set difference of the two shapes (A ∖ B).
|
| template<class ResultNumber = division_result_t<NumberType>, HalfplaneIntersectionConcept OtherIntersection> |
| PolygonSet< Point< ResultNumber, typename PointType::LabelType > > | difference (const OtherIntersection &other) const |
| | Returns the regularized set difference of the two shapes (A ∖ B).
|
| template<class ResultNumber = division_result_t<NumberType>, HalfplaneConcept OtherHalfplane> |
| PolygonSet< Point< ResultNumber, typename PointType::LabelType > > | difference (const OtherHalfplane &other) const |
| | Returns the regularized set difference of the two shapes (A ∖ B).
|
| template<class ResultNumber = division_result_t<NumberType>, TriangleConcept OtherTriangle> |
| PolygonSet< Point< ResultNumber, typename PointType::LabelType > > | symmetricDifference (const OtherTriangle &other) const |
| | Returns the regularized symmetric difference of the two shapes (A △ B).
|
| template<class ResultNumber = division_result_t<NumberType>, RectangleConcept OtherRectangle> |
| PolygonSet< Point< ResultNumber, typename PointType::LabelType > > | symmetricDifference (const OtherRectangle &other) const |
| | Returns the regularized symmetric difference of the two shapes (A △ B).
|
template<class ResultNumber = division_result_t<NumberType>, typename OtherShape>
requires ((detail::shapeRank<OtherShape> > detail::shapeRank<Triangle>) && requires(const OtherShape& o, const Triangle& self)
{ o.template symmetricDifference<ResultNumber>(self); }) |
| auto | symmetricDifference (const OtherShape &other) const |
| | Returns the regularized symmetric difference of the two shapes (A △ B).
|
| template<PointConcept OtherPoint> |
| constexpr Triangle & | operator+= (const OtherPoint &translation) |
| | Translates all vertices by a point in place.
|
| template<PointConcept OtherPoint> |
| constexpr Triangle & | operator-= (const OtherPoint &translation) |
| | Translates all vertices by the opposite of a point in place.
|
template<class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>) |
| constexpr Triangle & | operator*= (const Scalar &scalar) |
| | Scales all vertices by a scalar in place.
|
template<class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>) |
| constexpr Triangle & | operator/= (const Scalar &scalar) |
| | Divides all vertices by a scalar in place.
|
| template<class ResultNumber, PolygonalRegionConcept OtherRegion> |
| PolygonSet< Point< ResultNumber, typename PointType_::LabelType > > | difference (const OtherRegion &other) const |
| template<class ResultNumber, HalfplaneIntersectionConcept OtherIntersection> |
| PolygonSet< Point< ResultNumber, typename PointType_::LabelType > > | difference (const OtherIntersection &other) const |
| template<class ResultNumber, HalfplaneConcept OtherHalfplane> |
| PolygonSet< Point< ResultNumber, typename PointType_::LabelType > > | difference (const OtherHalfplane &other) const |
| template<class ResultNumber, TriangleConcept OtherTriangle> |
| PolygonSet< Point< ResultNumber, typename PointType_::LabelType > > | regularizedUnion (const OtherTriangle &other) const |
| template<class ResultNumber, RectangleConcept OtherRectangle> |
| PolygonSet< Point< ResultNumber, typename PointType_::LabelType > > | regularizedUnion (const OtherRectangle &other) const |
| template<class ResultNumber, TriangleConcept OtherTriangle> |
| PolygonSet< Point< ResultNumber, typename PointType_::LabelType > > | symmetricDifference (const OtherTriangle &other) const |
| template<class ResultNumber, RectangleConcept OtherRectangle> |
| PolygonSet< Point< ResultNumber, typename PointType_::LabelType > > | symmetricDifference (const OtherRectangle &other) const |
| template<PointConcept OtherPoint> |
| constexpr Triangle< PointType, LabelType > & | operator+= (const OtherPoint &translation) |
| template<PointConcept OtherPoint> |
| constexpr Triangle< PointType, LabelType > & | operator-= (const OtherPoint &translation) |
template<class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>) |
| constexpr Triangle< PointType, LabelType > & | operator*= (const Scalar &scalar) |
template<class Scalar>
requires (!detail::is_point_v<Scalar> && !TransformationConcept<Scalar>) |
| constexpr Triangle< PointType, LabelType > & | operator/= (const Scalar &scalar) |
| template<class OtherNumber> |
| constexpr Triangle< PointType, LabelType > | scaledUpX (const OtherNumber scalar) const |
| template<class OtherNumber> |
| constexpr Triangle< PointType, LabelType > | scaledUpY (const OtherNumber scalar) const |
| template<class OtherNumber> |
| constexpr Triangle< PointType, LabelType > | scaledDownX (const OtherNumber scalar) const |
| template<class OtherNumber> |
| constexpr Triangle< PointType, LabelType > | scaledDownY (const OtherNumber scalar) const |