Contents
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()
boolean
Indicates whether the specified polygon is contained within this bounding box (check includes box boundary).boolean
Indicates whether the specified point is contained within this bounding box (check includes box boundary).boolean
Indicates 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()
boolean
intersects
(Bounds b) Indicates whether the specified bounding box intersects with this bounding box (check includes box boundary).boolean
Deprecated.not implemented yettoCSG()
Returns this bounding box as csg.toCube()
Returns this bounding box as cube.toString()
-
Constructor Details
-
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:
true
if the vertex is contained within this bounding box;false
otherwise
-
contains
Indicates whether the specified point is contained within this bounding box (check includes box boundary).- Parameters:
v
- vertex to check- Returns:
true
if the point is contained within this bounding box;false
otherwise
-
contains
Indicates whether the specified polygon is contained within this bounding box (check includes box boundary).- Parameters:
p
- polygon to check- Returns:
true
if the polygon is contained within this bounding box;false
otherwise
-
intersects
Deprecated.not implemented yetIndicates whether the specified polygon intersects with this bounding box (check includes box boundary).- Parameters:
p
- polygon to check- Returns:
true
if the polygon intersects this bounding box;false
otherwise
-
intersects
Indicates whether the specified bounding box intersects with this bounding box (check includes box boundary).- Parameters:
b
- box to check- Returns:
true
if the bounding box intersects this bounding box;false
otherwise
-
getMin
- Returns:
- the min x,y,z values
-
getMax
- Returns:
- the max x,y,z values
-
toString
-