BWAPI
BTHAI/SCProjects/include/BWTA/Polygon.h
Go to the documentation of this file.
00001 #pragma once
00002 #include <BWAPI.h>
00003 #include <vector>
00004 namespace BWTA
00005 {
00006   class Polygon : public std::vector <BWAPI::Position>
00007   {
00008     public:
00009     Polygon();
00010     Polygon(const Polygon& b);
00011     double getArea() const;
00012     double getPerimeter() const;
00013     BWAPI::Position getCenter() const;
00014     bool isInside(BWAPI::Position p) const;
00015     BWAPI::Position getNearestPoint(BWAPI::Position p) const;
00016     const std::vector<Polygon>& getHoles() const;
00017     std::vector<Polygon> holes;
00018   };
00019 }
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Defines