public final class RectangleFloat extends Object implements Rectangle
Modifier and Type | Method and Description |
---|---|
Rectangle |
add(Rectangle r) |
double |
area() |
boolean |
contains(double x,
double y) |
static Rectangle |
create(float x1,
float y1,
float x2,
float y2) |
double |
distance(Rectangle r)
Returns the distance to the given
Rectangle . |
boolean |
equals(Object obj) |
Geometry |
geometry() |
int |
hashCode() |
double |
intersectionArea(Rectangle r) |
boolean |
intersects(Rectangle r) |
boolean |
isDoublePrecision() |
Rectangle |
mbr()
Returns the minimum bounding rectangle of this geometry.
|
double |
perimeter() |
String |
toString() |
double |
x1() |
double |
x2() |
double |
y1() |
double |
y2() |
public final float x1
public final float y1
public final float x2
public final float y2
public static Rectangle create(float x1, float y1, float x2, float y2)
public boolean intersects(Rectangle r)
intersects
in interface Geometry
public Rectangle mbr()
Geometry
public double intersectionArea(Rectangle r)
intersectionArea
in interface Rectangle
public Geometry geometry()
geometry
in interface HasGeometry
public boolean isDoublePrecision()
isDoublePrecision
in interface Geometry
isDoublePrecision
in interface Rectangle
Copyright © 2013–2024. All rights reserved.