Package eu.mihosoft.vrl.v3d
Class Bounds
java.lang.Object
eu.mihosoft.vrl.v3d.Bounds
Bounding box for CSGs.
- Author:
- Michael Hoffer <info@michaelhoffer.de>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()booleanIndicates whether the specified polygon is contained within this bounding box (check includes box boundary).booleanIndicates whether the specified point is contained within this bounding box (check includes box boundary).booleanIndicates whether the specified vertex is contained within this bounding box (check includes box boundary).Returns the bounds (width,height,depth).Returns the position of the center.getMax()getMin()booleanintersects(Bounds b) Indicates whether the specified bounding box intersects with this bounding box (check includes box boundary).booleanDeprecated.not implemented yettoCSG()Returns this bounding box as csg.toCube()Returns this bounding box as cube.toString()
- 
Constructor Details- 
BoundsConstructor.- Parameters:
- min- min x,y,z values
- max- max x,y,z values
 
 
- 
- 
Method Details- 
clone
- 
getCenterReturns the position of the center.- Returns:
- the center position
 
- 
getBoundsReturns the bounds (width,height,depth).- Returns:
- the bounds (width,height,depth)
 
- 
toCSGReturns this bounding box as csg.- Returns:
- this bounding box as csg
 
- 
toCubeReturns this bounding box as cube.- Returns:
- this bounding box as cube
 
- 
containsIndicates whether the specified vertex is contained within this bounding box (check includes box boundary).- Parameters:
- v- vertex to check
- Returns:
- trueif the vertex is contained within this bounding box;- falseotherwise
 
- 
containsIndicates whether the specified point is contained within this bounding box (check includes box boundary).- Parameters:
- v- vertex to check
- Returns:
- trueif the point is contained within this bounding box;- falseotherwise
 
- 
containsIndicates whether the specified polygon is contained within this bounding box (check includes box boundary).- Parameters:
- p- polygon to check
- Returns:
- trueif the polygon is contained within this bounding box;- falseotherwise
 
- 
intersectsDeprecated.not implemented yetIndicates whether the specified polygon intersects with this bounding box (check includes box boundary).- Parameters:
- p- polygon to check
- Returns:
- trueif the polygon intersects this bounding box;- falseotherwise
 
- 
intersectsIndicates whether the specified bounding box intersects with this bounding box (check includes box boundary).- Parameters:
- b- box to check
- Returns:
- trueif the bounding box intersects this bounding box;- falseotherwise
 
- 
getMin- Returns:
- the min x,y,z values
 
- 
getMax- Returns:
- the max x,y,z values
 
- 
toString
 
-