com.metsci.glimpse.charts.vector.display.examplesupport
Class BoundingBox
java.lang.Object
com.metsci.glimpse.charts.vector.display.examplesupport.BoundingBox
public class BoundingBox
- extends java.lang.Object
Simple util to keep track of a bounding box.
Probably should switch caller to com.metsci.glimpse.util.math.stat.StatCollectorNDim.
- Author:
- Cunningham
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BoundingBox
public BoundingBox()
BoundingBox
public BoundingBox(java.awt.Dimension d)
BoundingBox
public BoundingBox(double width,
double height)
BoundingBox
public BoundingBox(double minX,
double maxX,
double minY,
double maxY)
getMaxX
public double getMaxX()
getMinX
public double getMinX()
getMaxY
public double getMaxY()
getMinY
public double getMinY()
isEmpty
public boolean isEmpty()
debug
public void debug()
applyPoint
public void applyPoint(double x,
double y)
contains
public boolean contains(double otherX,
double otherY)
contains
public boolean contains(BoundingBox otherBox)
transformX
public double transformX(BoundingBox fromSpace,
double x)
transformY
public double transformY(BoundingBox fromSpace,
double y)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2012 Metron, Inc.. All Rights Reserved.