20 lines
358 B
C++
20 lines
358 B
C++
|
|
#ifndef POLYGON_H
|
|
#define POLYGON_H
|
|
|
|
#include <vector>
|
|
|
|
#include "refptr.h"
|
|
#include "Vector.h"
|
|
|
|
class Polygon : public std::vector< refptr<Vector> >
|
|
{
|
|
public:
|
|
Polygon & add(const Vector & v);
|
|
Polygon & add(refptr<Vector> v);
|
|
bool containsPoint2D(const Vector & v);
|
|
bool containsPointConvex(const Vector & v);
|
|
};
|
|
|
|
#endif
|