Skip to content

Commit

Permalink
Improve Envelope doc
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-jts committed May 24, 2024
1 parent a7529ec commit 975fa00
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions include/geos/geom/Envelope.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ class Coordinate;
* 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
* Envelopes allow null values, which are represented with NaN values for ordinates.
* 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
Expand Down Expand Up @@ -301,8 +302,8 @@ class GEOS_DLL Envelope {
}

/** \brief
* Returns the Envelope maximum y-value. `min y > max y` indicates
* that this is a null Envelope.
* Returns the Envelope maximum y-value.
* Null envelopes do not have maximum values.
*/
double getMaxY() const
{
Expand All @@ -311,8 +312,8 @@ class GEOS_DLL Envelope {
};

/** \brief
* Returns the Envelope maximum x-value. `min x > max x` indicates
* that this is a null Envelope.
* Returns the Envelope maximum x-value.
* Null envelopes do not have maximum values.
*/
double getMaxX() const
{
Expand All @@ -321,8 +322,8 @@ class GEOS_DLL Envelope {
};

/** \brief
* Returns the Envelope minimum y-value. `min y > max y` indicates
* that this is a null Envelope.
* Returns the Envelope minimum y-value.
* Null envelopes do not have maximum values.
*/
double getMinY() const
{
Expand All @@ -331,8 +332,8 @@ class GEOS_DLL Envelope {
};

/** \brief
* Returns the Envelope minimum x-value. `min x > max x` indicates
* that this is a null Envelope.
* Returns the Envelope minimum x-value.
* Null envelopes do not have maximum values.
*/
double getMinX() const
{
Expand Down Expand Up @@ -371,7 +372,7 @@ class GEOS_DLL Envelope {
* @param result the envelope representing the intersection of
* the envelopes (this will be the null envelope
* if either argument is null, or they do not intersect)
* @return false if not intersection is found
* @return false if no intersection is found
*/
bool intersection(const Envelope& env, Envelope& result) const;

Expand Down

0 comments on commit 975fa00

Please sign in to comment.