Package org.robwork.sdurw_geometry
Class AABB
- java.lang.Object
-
- org.robwork.sdurw_geometry.AABB
-
public class AABB extends java.lang.Object
Axis Aligned Bounding Box class
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
calcArea()
calculates the total area of the boxdouble
calcVolume()
calculate the volume of this OBBvoid
delete()
Vector3D
diagonal()
returns the diagonal of the boxstatic long
getCPtr(AABB obj)
Vector3D
getHalfLengths()
get halflengths of this boxVector3D
getPosition()
position of this AABBvoid
setHalfLengths(Vector3D pos)
set half lengthsvoid
setPosition(Vector3D pos)
set position
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(AABB obj)
-
delete
public void delete()
-
setHalfLengths
public void setHalfLengths(Vector3D pos)
set half lengths
-
getHalfLengths
public Vector3D getHalfLengths()
get halflengths of this box
-
setPosition
public void setPosition(Vector3D pos)
set position
-
getPosition
public Vector3D getPosition()
position of this AABB
-
calcVolume
public double calcVolume()
calculate the volume of this OBB
-
calcArea
public double calcArea()
calculates the total area of the box
-
diagonal
public Vector3D diagonal()
returns the diagonal of the box- Returns:
- Vector3D<double>
-
-