Package org.robwork.sdurw_geometry
Class AABB
- java.lang.Object
-
- org.robwork.sdurw_geometry.AABB
-
public class AABB extends java.lang.ObjectAxis Aligned Bounding Box class
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublecalcArea()calculates the total area of the boxdoublecalcVolume()calculate the volume of this OBBvoiddelete()Vector3Ddiagonal()returns the diagonal of the boxstatic longgetCPtr(AABB obj)Vector3DgetHalfLengths()get halflengths of this boxVector3DgetPosition()position of this AABBvoidsetHalfLengths(Vector3D pos)set half lengthsvoidsetPosition(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>
-
-