us.ihmc.utilities.math.geometry
Class BoundingBox2d

java.lang.Object
  extended by us.ihmc.utilities.math.geometry.BoundingBox2d

public class BoundingBox2d
extends java.lang.Object


Constructor Summary
BoundingBox2d(BoundingBox2d p)
           
BoundingBox2d(double[] min, double[] max)
           
BoundingBox2d(javax.vecmath.Point2d min, javax.vecmath.Point2d max)
           
 
Method Summary
 void getCenterPointCopy(javax.vecmath.Point2d center)
           
 javax.vecmath.Point2d getMaxPoint()
           
 void getMaxPoint(javax.vecmath.Point2d max)
           
 javax.vecmath.Point2d getMinPoint()
           
 void getMinPoint(javax.vecmath.Point2d min)
           
 void getPointGivenParameters(javax.vecmath.Point2d point, double xParameter, double yParameter)
           
 boolean intersects(BoundingBox2d r)
           
 boolean isBoxAtOrAbove(double referenceY)
          returns true if this boxes minimum point y value >= referenceY
 boolean isBoxAtOrBelow(double referenceY)
          returns true if this boxes maximum point y value <= referenceY
 boolean isBoxAtOrLeftOf(double referenceX)
          returns true if this boxes maximum point x value <= referenceX
 boolean isBoxAtOrRightOf(double referenceX)
          returns true if this boxes minimum point x value >= referenceX
 boolean isInside(javax.vecmath.Point2d point2d)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoundingBox2d

public BoundingBox2d(javax.vecmath.Point2d min,
                     javax.vecmath.Point2d max)

BoundingBox2d

public BoundingBox2d(double[] min,
                     double[] max)

BoundingBox2d

public BoundingBox2d(BoundingBox2d p)
Method Detail

getMinPoint

public void getMinPoint(javax.vecmath.Point2d min)

getMaxPoint

public void getMaxPoint(javax.vecmath.Point2d max)

getMaxPoint

public javax.vecmath.Point2d getMaxPoint()

getMinPoint

public javax.vecmath.Point2d getMinPoint()

getCenterPointCopy

public void getCenterPointCopy(javax.vecmath.Point2d center)

isBoxAtOrAbove

public boolean isBoxAtOrAbove(double referenceY)
returns true if this boxes minimum point y value >= referenceY


isBoxAtOrBelow

public boolean isBoxAtOrBelow(double referenceY)
returns true if this boxes maximum point y value <= referenceY


isBoxAtOrLeftOf

public boolean isBoxAtOrLeftOf(double referenceX)
returns true if this boxes maximum point x value <= referenceX


isBoxAtOrRightOf

public boolean isBoxAtOrRightOf(double referenceX)
returns true if this boxes minimum point x value >= referenceX


isInside

public boolean isInside(javax.vecmath.Point2d point2d)

intersects

public boolean intersects(BoundingBox2d r)

getPointGivenParameters

public void getPointGivenParameters(javax.vecmath.Point2d point,
                                    double xParameter,
                                    double yParameter)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object