#include <Polygon.h>
Public Member Functions | |
Polygon () | |
Polygon (const Polygon &b) | |
double | getArea () const |
double | getPerimeter () const |
BWAPI::Position | getCenter () const |
bool | isInside (BWAPI::Position p) const |
BWAPI::Position | getNearestPoint (BWAPI::Position p) const |
const std::vector< Polygon > & | getHoles () const |
Public Attributes | |
std::vector< Polygon > | holes |
BWTA::Polygon::Polygon | ( | const Polygon & | b | ) |
double BWTA::Polygon::getArea | ( | ) | const |
BWAPI::Position BWTA::Polygon::getCenter | ( | ) | const |
const std::vector<Polygon>& BWTA::Polygon::getHoles | ( | ) | const |
double BWTA::Polygon::getPerimeter | ( | ) | const |
bool BWTA::Polygon::isInside | ( | BWAPI::Position | p | ) | const |
std::vector<Polygon> BWTA::Polygon::holes |