fart/util/Polygon.h
Josh Holtrop 7bac2fb076 added Polygon::add(), Polygon::containsPoint(); initial attempt at rendering Extrude objects
git-svn-id: svn://anubis/fart/trunk@272 7f9b0f55-74a9-4bce-be96-3c2cd072584d
2010-07-02 16:14:46 +00:00

27 lines
458 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 containsPoint(const Vector & v);
};
#endif