|
olp-cpp-sdk
1.23.1
|
A rectangular area in the WGS84 Coordinate System. More...
#include <GeoRectangle.h>

Public Member Functions | |
| GeoRectangle () | |
| Creates an empty rectangle. | |
| GeoRectangle (const GeoCoordinates &south_west, const GeoCoordinates &north_east) | |
Creates a GeoRectangle instance. More... | |
| GeoCoordinates | SouthEast () const |
| Computes the southeast corner of the rectangle. More... | |
| GeoCoordinates | SouthWest () const |
| Computes the southwest corner of the rectangle. More... | |
| GeoCoordinates | NorthEast () const |
| Computes the northeast corner of the rectangle. More... | |
| GeoCoordinates | NorthWest () const |
| Computes the northwest corner of the rectangle. More... | |
| GeoCoordinates | Center () const |
| Computes the center of the rectangle. More... | |
| bool | IsEmpty () const |
| Checks whether the rectangle is empty. More... | |
| double | LongitudeSpan () const |
| Gets the longitude span of the rectangle. More... | |
| double | LatitudeSpan () const |
| Gets the latitude span of the rectangle. More... | |
| bool | Contains (const GeoCoordinates &point) const |
| Checks whether the coordinates contain a point. More... | |
| bool | Overlaps (const GeoRectangle &rectangle) const |
| Checks whether two rectangles overlap. More... | |
| bool | operator== (const GeoRectangle &other) const |
| Checks whether two rectangles are equal. More... | |
| bool | operator!= (const GeoRectangle &other) const |
| Checks whether two rectangles are not equal. More... | |
| GeoRectangle | BooleanUnion (const GeoRectangle &other) const |
| Unites two regtangles that have shared areas. More... | |
| GeoRectangle & | GrowToContain (const GeoCoordinates &point) |
| Expands the current rectangle so that it contains a point. More... | |
Protected Attributes | |
| GeoCoordinates | south_west_ |
| The southwest corner of the rectangle. | |
| GeoCoordinates | north_east_ |
| The northeast corner of the rectangle. | |
A rectangular area in the WGS84 Coordinate System.
GeoBox to add altitude. | olp::geo::GeoRectangle::GeoRectangle | ( | const GeoCoordinates & | south_west, |
| const GeoCoordinates & | north_east | ||
| ) |
Creates a GeoRectangle instance.
| south_west | The southwest corner of the rectangle. |
| north_east | The northeast corner of the rectangle. |
| GeoRectangle olp::geo::GeoRectangle::BooleanUnion | ( | const GeoRectangle & | other | ) | const |
Unites two regtangles that have shared areas.
| other | The other rectangle. |
| GeoCoordinates olp::geo::GeoRectangle::Center | ( | ) | const |
Computes the center of the rectangle.
| bool olp::geo::GeoRectangle::Contains | ( | const GeoCoordinates & | point | ) | const |
Checks whether the coordinates contain a point.
| point | The point to check. |
| GeoRectangle& olp::geo::GeoRectangle::GrowToContain | ( | const GeoCoordinates & | point | ) |
Expands the current rectangle so that it contains a point.
| point | The point to use for expanding. |
| bool olp::geo::GeoRectangle::IsEmpty | ( | ) | const |
Checks whether the rectangle is empty.
| double olp::geo::GeoRectangle::LatitudeSpan | ( | ) | const |
Gets the latitude span of the rectangle.
| double olp::geo::GeoRectangle::LongitudeSpan | ( | ) | const |
Gets the longitude span of the rectangle.
| GeoCoordinates olp::geo::GeoRectangle::NorthEast | ( | ) | const |
Computes the northeast corner of the rectangle.
| GeoCoordinates olp::geo::GeoRectangle::NorthWest | ( | ) | const |
Computes the northwest corner of the rectangle.
| bool olp::geo::GeoRectangle::operator!= | ( | const GeoRectangle & | other | ) | const |
Checks whether two rectangles are not equal.
| other | The other rectangle. |
| bool olp::geo::GeoRectangle::operator== | ( | const GeoRectangle & | other | ) | const |
Checks whether two rectangles are equal.
| other | The other rectangle. |
| bool olp::geo::GeoRectangle::Overlaps | ( | const GeoRectangle & | rectangle | ) | const |
Checks whether two rectangles overlap.
| rectangle | The other rectangle. |
| GeoCoordinates olp::geo::GeoRectangle::SouthEast | ( | ) | const |
Computes the southeast corner of the rectangle.
| GeoCoordinates olp::geo::GeoRectangle::SouthWest | ( | ) | const |
Computes the southwest corner of the rectangle.