#include <gls_map_util.h>
The GeoRect class represents a lon/lat aligned region on the surface of the earth.
ctor - sets the GeoRect to contain nothing
bool ContainsPoint |
( |
const GeoCoord & |
point | ) |
const |
|
inline |
Determine if a point is in the GeoRect
bool ContainsPoint |
( |
double |
lon, |
|
|
double |
lat |
|
) |
| const |
|
inline |
Determine if a point is in the GeoRect
void GrowToContainPoint |
( |
const GeoCoord & |
point | ) |
|
|
inline |
Increase the area of the GeoRect as needed to include the given point
void GrowToContainPoint |
( |
double |
lon, |
|
|
double |
lat |
|
) |
| |
|
inline |
Increase the area of the GeoRect as needed to include the given point
bool Intersects |
( |
const GeoRect & |
other | ) |
const |
|
inline |
determine if the GeoRect to contains nothing
- Returns
- true if contains nothing else false
void Scale |
( |
const double |
scaleFactor | ) |
|
|
inline |
Scale the region by moving the edges inward or outward from the center.
void SetRect |
( |
double |
minLongitude, |
|
|
double |
minLatitude, |
|
|
double |
maxLongitude, |
|
|
double |
maxLatitude |
|
) |
| |
|
inline |
void SetToIntersection |
( |
const GeoRect & |
rect1, |
|
|
const GeoRect & |
rect2 |
|
) |
| |
|
inline |
Set the GeoRect to contain nothing.
void SetToPoint |
( |
const GeoCoord & |
point | ) |
|
|
inline |
Set the GeoRect to contain a single point
void SetToPoint |
( |
double |
lon, |
|
|
double |
lat |
|
) |
| |
|
inline |
Set the GeoRect to contain a single point
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const GeoRect & |
r |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: