public class ESRIBoundingBox
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ESRIPoint |
max
The maximum point.
|
ESRIPoint |
min
The minimum point.
|
Constructor and Description |
---|
ESRIBoundingBox()
Initialize a null bounding box.
|
ESRIBoundingBox(double x,
double y)
Initialize a bounding box from two doubles representing a point.
|
ESRIBoundingBox(ESRIPoint point)
Initialize a bounding box from a point.
|
ESRIBoundingBox(ESRIPoint _min,
ESRIPoint _max)
Initialize a bounding box to encompass a minimum and maximum point.
|
Modifier and Type | Method and Description |
---|---|
void |
addBounds(ESRIBoundingBox bb)
Increase the extents of this bounding box to enclose the given bounding
box.
|
void |
addPoint(double x,
double y) |
void |
addPoint(ESRIPoint point)
Increase the extents of this bounding box to enclose the given point.
|
void |
addPoints(ESRIPoint[] points)
Increase the extents of this bounding box to enclose all of the given
points.
|
boolean |
equals(java.lang.Object obj)
Determines equality with another bounding box
|
int |
hashCode() |
public ESRIPoint min
public ESRIPoint max
public ESRIBoundingBox()
public ESRIBoundingBox(ESRIPoint point)
point
- the point to enclosepublic ESRIBoundingBox(double x, double y)
x
- the x coordinatey
- the y coordinatepublic void addBounds(ESRIBoundingBox bb)
bb
- a bounding box to be enclosedpublic void addPoints(ESRIPoint[] points)
points
- a set of points to enclosepublic void addPoint(ESRIPoint point)
point
- a point to enclosepublic void addPoint(double x, double y)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- a candidate objecttrue
if obj
is of type
ESRIBoundingBox
and the extents of
that bounding box match this box's extents. false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details