X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Finfoarea.h;fp=src%2Fbase%2Finfoarea.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=0f1e5f5c57507c85a1b3e42332de63a4be4c1a48;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/infoarea.h b/src/base/infoarea.h deleted file mode 100644 index 0f1e5f5..0000000 --- a/src/base/infoarea.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef __INFOAREA_H__ -#define __INFOAREA_H__ - -#include -#include "vector.h" - -/** - * Class for getting information about an area. - * - * @author Andrew Mustun - */ -class InfoArea -{ - public: - InfoArea(); - ~InfoArea(); - - void reset(); - void addPoint(const Vector & p); - void calculate(); - void close(); - bool isValid(); - bool isClosed(); - double getArea(); - double getCircumference(); - int count(); - - private: - double calcSubArea(const Vector & p1, const Vector & p2); - QVector thePoints; - double baseY; - double area; - double circumference; -}; - -#endif