1 #ifndef REPRESENTATION_FORMAL_BASIC_CONDITION_H 2 #define REPRESENTATION_FORMAL_BASIC_CONDITION_H 7 #include <boost/variant.hpp> 14 using GeoEntity = boost::variant<IntervalHull, Polytope>;
55 explicit Condition(
const std::vector<capd::interval>& constraints,
GEOMETRY geometry);
82 [[nodiscard]] capd::IVector constraints()
const;
92 [[nodiscard]]
bool empty()
const;
97 [[nodiscard]]
int dimension()
const;
115 [[nodiscard]]
Point randInnerPoint()
const;
120 Point centroid()
const;
126 [[nodiscard]]
bool contains(
const Condition& rhs)
const;
132 [[nodiscard]]
bool contains(
const Point& point)
const;
137 [[nodiscard]] std::vector<Point> vertices()
const;
142 [[nodiscard]] capd::C0Rect2Set
set()
const;
152 #endif //REPRESENTATION_FORMAL_BASIC_CONDITION_H std::ostream & operator<<(std::ostream &out, const Condition &rhs)
output the right hand side condition to the standard out stream
Definition: condition.cpp:246
GEOMETRY
supported geometry object
Definition: enum.h:75
Definition: condition.h:16
Definition: condition.h:22
boost::variant< IntervalHull, Polytope > GeoEntity
geometry entity which used for represent the interval hull or polytope and any other objects shall be...
Definition: condition.h:14
GeoEntity geoEntity_
entity of the condition
Definition: condition.h:28
Definition: condition.cpp:3
GeoEntity operator()(const GeoEntity &geoEntity) const
Definition: condition.h:19