| Modifier | Constructor and Description |
|---|---|
protected |
Circle(float x,
float y,
float radius) |
| 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 c) |
boolean |
intersects(Line line) |
boolean |
intersects(Point point) |
boolean |
intersects(Rectangle r) |
Rectangle |
mbr()
Returns the minimum bounding rectangle of this geometry.
|
float |
radius() |
float |
x() |
float |
y() |
public float x()
public float y()
public float radius()
public Rectangle mbr()
Geometrypublic 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 boolean intersects(Rectangle r)
intersects in interface Geometrypublic boolean intersects(Circle c)
public boolean intersects(Point point)
public boolean intersects(Line line)
Copyright © 2013–2016. All rights reserved.