us.ihmc.utilities.math.geometry
Class BoundingBox3d

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

public class BoundingBox3d
extends java.lang.Object


Constructor Summary
BoundingBox3d(BoundingBox3d boundingBox)
           
BoundingBox3d(double[] min, double[] max)
           
BoundingBox3d(javax.vecmath.Point3d min, javax.vecmath.Point3d max)
           
 
Method Summary
 void getCenterPointCopy(javax.vecmath.Point3d center)
           
 javax.vecmath.Point3d getMaxPoint()
           
 void getMaxPoint(javax.vecmath.Point3d max)
           
 javax.vecmath.Point3d getMinPoint()
           
 void getMinPoint(javax.vecmath.Point3d min)
           
 double getXMax()
           
 double getXMin()
           
 double getYMax()
           
 double getYMin()
           
 double getZMax()
           
 double getZMin()
           
 boolean intersects(BoundingBox3d boundingBox)
           
 boolean isBoxAtOrAbove(double referenceZ)
          returns true if this boxes minimum point z value >= referenceZ
 boolean isBoxAtOrBehind(double referenceX)
          returns true if this boxes maximum point x value <= referenceX
 boolean isBoxAtOrBelow(double referenceZ)
          returns true if this boxes maximum point z value <= referenceZ
 boolean isBoxAtOrInFrontOf(double referenceX)
          returns true if this boxes minimum point x value >= referenceX
 boolean isBoxAtOrLeftOf(double referenceY)
          returns true if this boxes minimum point y value >= referenceY
 boolean isBoxAtOrRightOf(double referenceY)
          returns true if this boxes maximum point y value <= referenceY
 boolean isInside(double x, double y, double z)
           
 boolean isInside(javax.vecmath.Point3d point3d)
           
 boolean isXYInside(double x, double y)
           
 java.lang.String toString()
           
 BoundingBox3d union(BoundingBox3d boundingBox)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BoundingBox3d

public BoundingBox3d(javax.vecmath.Point3d min,
                     javax.vecmath.Point3d max)

BoundingBox3d

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

BoundingBox3d

public BoundingBox3d(BoundingBox3d boundingBox)
Method Detail

union

public BoundingBox3d union(BoundingBox3d boundingBox)

getXMin

public double getXMin()

getYMin

public double getYMin()

getZMin

public double getZMin()

getXMax

public double getXMax()

getYMax

public double getYMax()

getZMax

public double getZMax()

getMinPoint

public void getMinPoint(javax.vecmath.Point3d min)

getMaxPoint

public void getMaxPoint(javax.vecmath.Point3d max)

getMaxPoint

public javax.vecmath.Point3d getMaxPoint()

getMinPoint

public javax.vecmath.Point3d getMinPoint()

getCenterPointCopy

public void getCenterPointCopy(javax.vecmath.Point3d center)

isBoxAtOrAbove

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


isBoxAtOrBelow

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


isBoxAtOrLeftOf

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


isBoxAtOrRightOf

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


isBoxAtOrBehind

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


isBoxAtOrInFrontOf

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


isInside

public boolean isInside(javax.vecmath.Point3d point3d)

isXYInside

public boolean isXYInside(double x,
                          double y)

isInside

public boolean isInside(double x,
                        double y,
                        double z)

intersects

public boolean intersects(BoundingBox3d boundingBox)

toString

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