GDAL
|
Simple container for a bounding region (rectangle) More...
#include <ogr_core.h>
Public Member Functions | |
OGREnvelope () | |
Default constructor. | |
OGREnvelope (const OGREnvelope &oOther) | |
Copy constructor. | |
OGREnvelope & | operator= (const OGREnvelope &)=default |
Assignment operator. | |
int | IsInit () const |
Return whether the object has been initialized, that is, is non empty. | |
void | Merge (OGREnvelope const &sOther) |
Update the current object by computing its union with the other rectangle. | |
void | Merge (double dfX, double dfY) |
Update the current object by computing its union with the provided point. | |
void | Intersect (OGREnvelope const &sOther) |
Update the current object by computing its intersection with the other rectangle. | |
int | Intersects (OGREnvelope const &other) const |
Return whether the current object intersects with the other rectangle. | |
int | Contains (OGREnvelope const &other) const |
Return whether the current object contains the other rectangle. | |
bool | operator== (const OGREnvelope &other) const |
Return whether the current rectangle is equal to the other rectangle. | |
bool | operator!= (const OGREnvelope &other) const |
Return whether the current rectangle is not equal to the other rectangle. | |
Public Attributes | |
double | MinX |
Minimum X value. | |
double | MaxX |
Maximum X value. | |
double | MinY |
Minimum Y value. | |
double | MaxY |
Maximum Y value. | |
Simple container for a bounding region (rectangle)
|
inline |
Default constructor.
Defines an empty rectangle