codac 2.0.0
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
44 ConvexPolygon(const std::vector<Vector>& vertices, bool compute_convex_hull = true);
45
55 explicit ConvexPolygon(const std::vector<IntervalVector>& vertices, bool compute_convex_hull = true);
56
62 ConvexPolygon(std::initializer_list<Segment> edges);
63
69 ConvexPolygon(const std::vector<Segment>& edges);
70
78 explicit ConvexPolygon(const IntervalVector& x);
79
86
87 protected:
88
93 };
94
105 ConvexPolygon operator&(const ConvexPolygon& p1, const ConvexPolygon& p2);
106}
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.
static ConvexPolygon empty()
Provides an empty convex polygon.
ConvexPolygon(const std::vector< Segment > &edges)
Constructs a ConvexPolygon from a vector of Segment edges.
ConvexPolygon(const std::vector< Vector > &vertices, bool compute_convex_hull=true)
Constructs a ConvexPolygon from a vector of Vector vertices.
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.
ConvexPolygon(const std::vector< IntervalVector > &vertices, bool compute_convex_hull=true)
Constructs a ConvexPolygon from a vector of IntervalVector vertices.
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.
Definition codac2_OctaSym.h:21
Eigen::Matrix< Interval,-1, 1 > IntervalVector
Alias for a dynamic-size column vector of intervals.
Definition codac2_IntervalVector.h:25