codac  1.5.7
codac_ConvexPolygon.h
1 
11 #ifndef __CODAC_CONVEXPOLYGON_H__
12 #define __CODAC_CONVEXPOLYGON_H__
13 
14 #include <vector>
15 #include "codac_Polygon.h"
16 #include "codac_BoolInterval.h"
17 
18 namespace codac
19 {
20  class ConvexPolygon : public Polygon
21  {
22  public:
23 
26 
27  ConvexPolygon();
28  ConvexPolygon(const ConvexPolygon& p);
29  explicit ConvexPolygon(const IntervalVector& box);
30  ConvexPolygon(const std::vector<ThickPoint>& v_thick_pts);
31  ConvexPolygon(const std::vector<Vector>& v_floating_pts, bool convex_and_convention_order = false);
32 
36 
37  const BoolInterval is_subset(const ConvexPolygon& p) const;
38  bool is_unbounded() const;
39  const BoolInterval contains(const ThickPoint& p) const;
40  const BoolInterval encloses(const ThickPoint& p) const;
41  const BoolInterval intersects(const ConvexPolygon& p) const;
42 
46 
47  const ConvexPolygon& inflate(double rad);
48  const ConvexPolygon& simplify(size_t max_edges);
49  const ConvexPolygon& rotate(const Interval& theta, const IntervalVector& center);
50 
54 
55  const IntervalVector fast_intersection(const IntervalVector& x) const;
56  const ConvexPolygon& operator&=(const ConvexPolygon& x);
57  const ConvexPolygon& operator|=(const ConvexPolygon& x);
58 
60  };
61 }
62 
63 #endif
FixPoint of a separator The fixpoint of a separator is computed by calling the "::"separate function ...
Definition: codac_capd_helpers.h:9