#ifndef POLYGON_H #define POLYGON_H #include #include "refptr.h" #include "Vector.h" class Polygon : public std::vector< refptr > { public: Polygon & add(const Vector & v) { push_back(new Vector(v)); return *this; } Polygon & add(refptr v) { push_back(v); return *this; } bool containsPoint2D(const Vector & v) const; bool containsPointConvex(const Vector & v) const; }; #endif