#include <geos.h>
Public Member Functions | |
Envelope (void) | |
Envelope (double x1, double x2, double y1, double y2) | |
Envelope (const Coordinate &p1, const Coordinate &p2) | |
Envelope (const Coordinate &p) | |
Envelope (const Envelope &env) | |
virtual | ~Envelope (void) |
Default destructor. | |
void | init (void) |
void | init (double x1, double x2, double y1, double y2) |
void | init (const Coordinate &p1, const Coordinate &p2) |
void | init (const Coordinate &p) |
void | init (Envelope env) |
void | setToNull (void) |
bool | isNull (void) const |
double | getWidth (void) const |
double | getHeight (void) const |
double | getMaxY () const |
double | getMaxX () const |
double | getMinY () const |
double | getMinX () const |
void | expandToInclude (const Coordinate &p) |
void | expandToInclude (double x, double y) |
void | expandToInclude (const Envelope *other) |
bool | contains (const Coordinate &p) const |
bool | contains (double x, double y) const |
bool | contains (const Envelope *other) const |
bool | overlaps (const Coordinate &p) const |
bool | overlaps (double x, double y) const |
bool | overlaps (const Envelope *other) const |
bool | intersects (const Coordinate &p) const |
bool | intersects (double x, double y) const |
bool | intersects (const Envelope *other) const |
string | toString (void) const |
double | distance (const Envelope *env) const |
Static Public Member Functions | |
static bool | intersects (const Coordinate &p1, const Coordinate &p2, const Coordinate &q) |
static bool | intersects (const Coordinate &p1, const Coordinate &p2, const Coordinate &q1, const Coordinate &q2) |
It is often used to represent the bounding box of a Geometry, e.g. the minimum and maximum x and y values of the Coordinates.
Note that Envelopes support infinite or half-infinite regions, by using the values of Double_POSITIVE_INFINITY
and Double_NEGATIVE_INFINITY
.
When Envelope objects are created or initialized, the supplies extent values are automatically sorted into the correct order.
|
Creates a null |
|
Creates an
|
|
Creates an
|
|
Creates an Envelope for a region defined by a single Coordinate.
|
|
Create an
|
|
Returns
|
|
Returns
|
|
Returns
|
|
Computes the distance between this and another |
|
Enlarges the boundary of the
|
|
Enlarges the boundary of the
|
|
Enlarges the boundary of the
|
|
Returns the difference between the maximum and minimum y values.
|
|
Returns the
|
|
Returns the
|
|
Returns the
|
|
Returns the
|
|
Returns the difference between the maximum and minimum x values.
|
|
Initialize an
|
|
Initialize an
|
|
Initialize an
|
|
Initialize an
|
|
Initialize to a null |
|
Check if the region defined by
|
|
Check if the point
|
|
Check if the point
|
|
Test the envelope defined by p1-p2 for intersection with the envelope defined by q1-q2
|
|
Test the point q to see whether it intersects the Envelope defined by p1-p2
|
|
Returns
|
|
|
|
|
|
|
|
Makes this |
|
Returns a
|