|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jzy3d.plot3d.builder.delaunay.jdt.BoundingBox
public class BoundingBox
Created by IntelliJ IDEA. User: Aviad Segev Date: 22/11/2009 Time: 20:29:56 BoundingBox represents a horizontal bounding rectangle defined by its lower left and upper right point. This is usually used as a rough approximation of the bounded geometry
Constructor Summary | |
---|---|
BoundingBox()
Creates an empty bounding box |
|
BoundingBox(BoundingBox other)
Copy constructor |
|
BoundingBox(double minx,
double maxx,
double miny,
double maxy)
Creates a bounding box given the extent |
|
BoundingBox(Point_dt lowerLeft,
Point_dt upperRight)
Create a bounding box between lowerLeft and upperRight |
Method Summary | |
---|---|
boolean |
contains(BoundingBox other)
Tests if the other BoundingBox lies wholely inside this BoundingBox |
double |
getHeight()
|
Point_dt |
getMaxPoint()
|
Point_dt |
getMinPoint()
|
double |
getWidth()
|
boolean |
isNull()
Returns true if this BoundingBox is a "null" envelope. |
double |
maxX()
|
double |
maxY()
|
double |
minX()
|
double |
minY()
|
BoundingBox |
unionWith(BoundingBox other)
Unify the BoundingBoxes of this and the other BoundingBox |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoundingBox()
public BoundingBox(BoundingBox other)
other
- the copied bounding boxpublic BoundingBox(double minx, double maxx, double miny, double maxy)
minx
- minimum x coordinatemaxx
- maximum x coordinateminy
- minimum y coordinatemaxy
- maximum y coordinatepublic BoundingBox(Point_dt lowerLeft, Point_dt upperRight)
lowerLeft
- lower left point of the boxupperRight
- upper left point of the boxMethod Detail |
---|
public boolean isNull()
public boolean contains(BoundingBox other)
other
- the BoundingBox to check
public BoundingBox unionWith(BoundingBox other)
other
- another BoundingBox
public double minX()
public double minY()
public double maxX()
public double maxY()
public double getWidth()
public double getHeight()
public Point_dt getMinPoint()
public Point_dt getMaxPoint()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |