Package io.prestosql.geospatial
Class Rectangle
- java.lang.Object
-
- io.prestosql.geospatial.Rectangle
-
public final class Rectangle extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Rectangle(double xMin, double yMin, double xMax, double yMax)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intestimateMemorySize()doublegetHeight()doublegetWidth()doublegetXMax()doublegetXMin()doublegetYMax()doublegetYMin()inthashCode()Rectangleintersection(Rectangle other)booleanintersects(Rectangle other)Rectanglemerge(Rectangle other)java.lang.StringtoString()
-
-
-
Method Detail
-
getXMin
public double getXMin()
-
getYMin
public double getYMin()
-
getXMax
public double getXMax()
-
getYMax
public double getYMax()
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
intersects
public boolean intersects(Rectangle other)
-
estimateMemorySize
public int estimateMemorySize()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-