codac 1.5.6
Loading...
Searching...
No Matches
codac2_ConvexPolygon.h
Go to the documentation of this file.
1
9
10#pragma once
11
12#include "codac2_Polygon.h"
13
14namespace codac2
15{
24 class ConvexPolygon : public Polygon
25 {
26 public:
27
33 ConvexPolygon(std::initializer_list<Vector> vertices);
34
40 ConvexPolygon(const std::vector<Vector>& vertices);
41
47 explicit ConvexPolygon(const std::vector<IntervalVector>& vertices);
48
54 ConvexPolygon(std::initializer_list<Segment> edges);
55
61 ConvexPolygon(const std::vector<Segment>& edges);
62
70 explicit ConvexPolygon(const IntervalVector& x);
71
78
79 protected:
80
85 };
86
97 ConvexPolygon operator&(const ConvexPolygon& p1, const ConvexPolygon& p2);
98}
Represents a convex polygon defined by vertices enclosed in IntervalVectors.
Definition codac2_ConvexPolygon.h:25
ConvexPolygon(const IntervalVector &x)
Constructs a box as a ConvexPolygon.
ConvexPolygon(const std::vector< Vector > &vertices)
Constructs a ConvexPolygon from a vector of Vector vertices.
ConvexPolygon(const std::vector< IntervalVector > &vertices)
Constructs a ConvexPolygon from a vector of IntervalVector vertices.
static ConvexPolygon empty()
Provides an empty convex polygon.
ConvexPolygon(const std::vector< Segment > &edges)
Constructs a ConvexPolygon from a vector of Segment edges.
ConvexPolygon()
Default protected constructor used internally.
ConvexPolygon(std::initializer_list< Vector > vertices)
Constructs a ConvexPolygon from an initializer list of Vector vertices.
ConvexPolygon(std::initializer_list< Segment > edges)
Constructs a ConvexPolygon from an initializer list of Segment edges.
Polygon(std::initializer_list< Vector > vertices)
Constructs a Polygon from an initializer list of Vector vertices.
const std::vector< Segment > & edges() const
Returns the list of edges of the polygon.