Class Bounds
java.lang.Object
eu.mihosoft.vrl.v3d.Bounds
Bounding box for CSGs.
- Author:
- Michael Hoffer <info@michaelhoffer.de>
-
Constructor Summary
Constructors -
Method Summary
Modifier 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
-
Bounds
-
-
Method Details
-
clone
-
getCenter
-
getBounds
Returns the bounds (width,height,depth).- Returns:
- the bounds (width,height,depth)
-
toCSG
-
toCube
-
contains
Indicates 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
-
contains
Indicates 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
-
contains
Indicates 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
-
intersects
Deprecated.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
-
intersects
Indicates 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
-