#include <geom.h>

Public Member Functions | |
| RegionArea () | |
| RegionArea (Point *bottomLeft, Point *topRight) | |
| RegionArea (Point *center, double radius) | |
| ~RegionArea () | |
| vector< Point * > | discrete (double resolution) |
| bool | contains (Point *p) |
| void | add (Point *p) |
Public Attributes | |
| Point * | bottomLeft |
| Describe the bottom left corner of this square region. | |
| Point * | topRight |
| Describe the top right corner of this square region. | |
Friends | |
| ostream & | operator<< (ostream &output, const RegionArea &r) |
| Output region in "[(lat,long),(lat,long]" format. | |
| RegionArea::RegionArea | ( | ) |
Create new square region using the given points as the bottom-left and top-right corners.
| bottomLeft | Bottom-left corner point of the new region | |
| topRight | Top-right corner point of the new region |
| RegionArea::RegionArea | ( | Point * | center, | |
| double | radius | |||
| ) |
Create new square region using the given point as the region center and distance of radius to each corner.
| center | Point to center the square region around | |
| radius | Radius in kilometers from the center point to each corner of the square region |
| RegionArea::~RegionArea | ( | ) |
| vector<Point*> RegionArea::discrete | ( | double | resolution | ) | [virtual] |
Turn the defined square region into a discrete set of points, using resolution to describe the level of detail. Effectively builds a grid across the square with resolution spacing.
| resolution | Level of spacing (detail) between the discrete points to be created. Value in kilometers. |
Implements Region.
| bool RegionArea::contains | ( | Point * | p | ) | [virtual] |
| void RegionArea::add | ( | Point * | p | ) | [virtual] |
| ostream& operator<< | ( | ostream & | output, | |
| const RegionArea & | r | |||
| ) | [friend] |
Output region in "[(lat,long),(lat,long]" format.
Describe the bottom left corner of this square region.
Describe the top right corner of this square region.
1.5.4