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.