Class Rectangle
java.lang.Object
org.opensearch.geometry.Rectangle
- All Implemented Interfaces:
Geometry
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRectangle(double minX, double maxX, double maxY, double minY) Constructs a bounding box by first validating the provided latitude and longitude coordinatesRectangle(double minX, double maxX, double maxY, double minY, double minZ, double maxZ) Constructs a bounding box by first validating the provided latitude and longitude coordinates -
Method Summary
Modifier and TypeMethodDescriptionbooleandoubledoubledoubledoublegetMaxX()doublegetMaxY()doublegetMaxZ()doubledoubledoubledoublegetMinX()doublegetMinY()doublegetMinZ()inthashCode()booleanhasZ()booleanisEmpty()toString()type()<T, E extends Exception>
Tvisit(GeometryVisitor<T, E> visitor)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Rectangle
public Rectangle(double minX, double maxX, double maxY, double minY) Constructs a bounding box by first validating the provided latitude and longitude coordinates -
Rectangle
public Rectangle(double minX, double maxX, double maxY, double minY, double minZ, double maxZ) Constructs a bounding box by first validating the provided latitude and longitude coordinates
-
-
Method Details
-
getMinY
public double getMinY() -
getMinX
public double getMinX() -
getMinZ
public double getMinZ() -
getMaxY
public double getMaxY() -
getMaxX
public double getMaxX() -
getMaxZ
public double getMaxZ() -
getMinLat
public double getMinLat() -
getMinLon
public double getMinLon() -
getMinAlt
public double getMinAlt() -
getMaxLat
public double getMaxLat() -
getMaxLon
public double getMaxLon() -
getMaxAlt
public double getMaxAlt() -
type
-
toString
-
equals
-
hashCode
-
visit
-
isEmpty
-
hasZ
-