fart/util/Polygon.h
Josh Holtrop 53ebaeec3e end caps on extrudes working!
git-svn-id: svn://anubis/fart/trunk@279 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2010-07-08 18:33:39 +00:00

28 lines
524 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)
{
push_back(new Vector(v));
return *this;
}
Polygon & add(refptr<Vector> v)
{
push_back(v);
return *this;
}
bool containsPoint2D(const Vector & v) const;
bool containsPointConvex(const Vector & v) const;
};
#endif