| Modifier and Type | Method and Description |
|---|---|
double |
distance(Rectangle r)
Returns the distance to the given
RectangleImpl. |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
intersects(Circle circle) |
boolean |
intersects(Line b) |
boolean |
intersects(Point point) |
boolean |
intersects(Rectangle r) |
Rectangle |
mbr()
Returns the minimum bounding rectangle of this geometry.
|
float |
x1() |
float |
x2() |
float |
y1() |
float |
y2() |
public double distance(Rectangle r)
Geometry
Returns the distance to the given RectangleImpl. For a
RectangleImpl this might be Euclidean distance but for an EPSG4326
lat-long Rectangle might be great-circle distance. The distance function
should satisfy the following properties:
distance(r) >= 0
if r1 contains r2 then distance(r1)<=distance(r2)
public Rectangle mbr()
Geometrypublic boolean intersects(Rectangle r)
intersects in interface Geometrypublic float x1()
public float y1()
public float x2()
public float y2()
public boolean intersects(Line b)
public boolean intersects(Point point)
public boolean intersects(Circle circle)
Copyright © 2013–2016. All rights reserved.