public interface Rectangle extends Shape
In geospatial contexts, it may cross the international date line (-180
longitude) if getCrossesDateLine() however it cannot pass the poles
although it may span the globe. It spans the globe if the X coordinate
(Longitude) goes from -180 to 180 as seen from getMinX() and getMaxX().
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCrossesDateLine()
Only meaningful for geospatial contexts.
|
double |
getHeight()
The height.
|
double |
getMaxX()
The right edge of the X coordinate.
|
double |
getMaxY()
The top edge of the Y coordinate.
|
double |
getMinX()
The left edge of the X coordinate.
|
double |
getMinY()
The bottom edge of the Y coordinate.
|
double |
getWidth()
The width.
|
SpatialRelation |
relateXRange(double minX,
double maxX)
A specialization of
Shape.relate(Shape)
for a horizontal line. |
SpatialRelation |
relateYRange(double minY,
double maxY)
A specialization of
Shape.relate(Shape)
for a vertical line. |
void |
reset(double minX,
double maxX,
double minY,
double maxY)
Expert: Resets the state of this shape given the arguments.
|
equals, getArea, getBoundingBox, getBuffered, getCenter, getContext, hasArea, isEmpty, relatevoid reset(double minX,
double maxX,
double minY,
double maxY)
double getWidth()
double getHeight()
double getMinX()
double getMinY()
double getMaxX()
double getMaxY()
boolean getCrossesDateLine()
SpatialRelation relateYRange(double minY, double maxY)
Shape.relate(Shape)
for a vertical line.SpatialRelation relateXRange(double minX, double maxX)
Shape.relate(Shape)
for a horizontal line.Copyright © 2025 LocationTech. All rights reserved.