A rectangular area in the WGS84 Coordinate System.
More...
#include <GeoRectangle.h>
A rectangular area in the WGS84 Coordinate System.
- See also
GeoBox to add altitude.
◆ GeoRectangle()
Creates a GeoRectangle instance.
- Parameters
-
| south_west | The southwest corner of the rectangle. |
| north_east | The northeast corner of the rectangle. |
◆ BooleanUnion()
Unites two regtangles that have shared areas.
- Parameters
-
| other | The other rectangle. |
- Returns
- A new rectangle.
◆ Center()
Computes the center of the rectangle.
- Returns
- The centere of the rectangle.
◆ Contains()
| bool olp::geo::GeoRectangle::Contains |
( |
const GeoCoordinates & |
point | ) |
const |
Checks whether the coordinates contain a point.
- Parameters
-
- Returns
- True if the coordinates contain a point; false otherwise.
◆ GrowToContain()
Expands the current rectangle so that it contains a point.
- Parameters
-
| point | The point to use for expanding. |
- Returns
- The new rectangle that contains the point.
◆ IsEmpty()
| bool olp::geo::GeoRectangle::IsEmpty |
( |
| ) |
const |
Checks whether the rectangle is empty.
- Returns
- True if the rectangle is empty; false otherwise.
◆ LatitudeSpan()
| double olp::geo::GeoRectangle::LatitudeSpan |
( |
| ) |
const |
Gets the latitude span of the rectangle.
- Returns
- The latitude span.
◆ LongitudeSpan()
| double olp::geo::GeoRectangle::LongitudeSpan |
( |
| ) |
const |
Gets the longitude span of the rectangle.
- Returns
- The longitude span.
◆ NorthEast()
Computes the northeast corner of the rectangle.
- Returns
- The northeast corner of the rectangle.
◆ NorthWest()
Computes the northwest corner of the rectangle.
- Returns
- The northwest corner of the rectangle.
◆ operator!=()
| bool olp::geo::GeoRectangle::operator!= |
( |
const GeoRectangle & |
other | ) |
const |
Checks whether two rectangles are not equal.
- Parameters
-
| other | The other rectangle. |
- Returns
- True if the rectangles are not equal; false otherwise.
◆ operator==()
| bool olp::geo::GeoRectangle::operator== |
( |
const GeoRectangle & |
other | ) |
const |
Checks whether two rectangles are equal.
- Parameters
-
| other | The other rectangle. |
- Returns
- True if the rectangles are equal; false otherwise.
◆ Overlaps()
| bool olp::geo::GeoRectangle::Overlaps |
( |
const GeoRectangle & |
rectangle | ) |
const |
Checks whether two rectangles overlap.
- Parameters
-
| rectangle | The other rectangle. |
- Returns
- True if the rectangles overlap; false otherwise.
◆ SouthEast()
Computes the southeast corner of the rectangle.
- Returns
- The southeast corner of the rectangle.
◆ SouthWest()
Computes the southwest corner of the rectangle.
- Returns
- The southwest corner of the rectangle.
The documentation for this class was generated from the following file: