public final class Point extends Object implements Rectangle
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
add(Rectangle r) |
float |
area() |
boolean |
contains(double x,
double y) |
double |
distance(Point p) |
double |
distance(Rectangle r)
Returns the distance to the given
RectangleImpl. |
double |
distanceSquared(Point p) |
boolean |
equals(Object obj) |
Geometry |
geometry() |
int |
hashCode() |
float |
intersectionArea(Rectangle r) |
boolean |
intersects(Rectangle r) |
Rectangle |
mbr()
Returns the minimum bounding rectangle of this geometry.
|
float |
perimeter() |
String |
toString() |
float |
x() |
float |
x1() |
float |
x2() |
float |
y() |
float |
y1() |
float |
y2() |
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 double distance(Point p)
public double distanceSquared(Point p)
public boolean intersects(Rectangle r)
intersects in interface Geometrypublic float x()
public float y()
public Geometry geometry()
geometry in interface HasGeometrypublic float intersectionArea(Rectangle r)
intersectionArea in interface RectangleCopyright © 2013–2016. All rights reserved.