org.ode4j.ode
Interface DBox

All Superinterfaces:
DGeom

public interface DBox
extends DGeom


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ode4j.ode.DGeom
DGeom.COLLIDER_MERGE_CONTACTS_VALUE, DGeom.CONTROL_CLASS, DGeom.CONTROL_CODE, DGeom.DataValue, DGeom.DNearCallback
 
Field Summary
 
Fields inherited from interface org.ode4j.ode.DGeom
dBoxClass, dCapsuleClass, dConvexClass, dCylinderClass, dFirstSpaceClass, dFirstUserClass, dGeomNumClasses, dGeomTransformClass, dHashSpaceClass, dHeightfieldClass, dLastSpaceClass, dLastUserClass, dMaxUserClasses, dPlaneClass, dQuadTreeSpaceClass, dRayClass, dSimpleSpaceClass, dSphereClass, dSweepAndPruneSpaceClass, dTriMeshClass
 
Method Summary
 DVector3C getLengths()
          Get the side lengths of a box.
 void getLengths(DVector3 result)
          Get the side lengths of a box.
 double getPointDepth(DVector3C p)
          Return the depth of a point in a box.
 void setLengths(double lx, double ly, double lz)
          Set the side lengths of the given box.
 void setLengths(DVector3C sides)
          Set the side lengths of the given box.
 
Methods inherited from interface org.ode4j.ode.DGeom
clearOffset, collide2, copyOffsetPosition, copyOffsetRotation, copyPosition, copyRotation, destroy, DESTRUCTOR, disable, enable, getAABB, getBody, getCategoryBits, getClassID, getCollideBits, getData, getOffsetPosition, getOffsetQuaternion, getOffsetRotation, getPosition, getPosRelPoint, getQuaternion, getRelPointPos, getRotation, getSpace, isEnabled, isOffset, lowLevelControl, setBody, setCategoryBits, setCollideBits, setData, setOffsetPosition, setOffsetQuaternion, setOffsetRotation, setOffsetWorldPosition, setOffsetWorldQuaternion, setOffsetWorldRotation, setPosition, setPosition, setQuaternion, setRotation, vectorFromWorld, vectorToWorld
 

Method Detail

setLengths

void setLengths(double lx,
                double ly,
                double lz)
Set the side lengths of the given box.

Parameters:
lx - the length of the box along the X axis
ly - the length of the box along the Y axis
lz - the length of the box along the Z axis
See Also:
getLengths()

getLengths

void getLengths(DVector3 result)
Get the side lengths of a box.

Parameters:
result - the returned side lengths
See Also:
setLengths(DVector3C)

setLengths

void setLengths(DVector3C sides)
Set the side lengths of the given box.

Parameters:
sides - the lengths of the box along the X, Y and Z axes
See Also:
getLengths()

getLengths

DVector3C getLengths()
Get the side lengths of a box.

Returns:
The returned side lengths.
See Also:
setLengths(DVector3C)

getPointDepth

double getPointDepth(DVector3C p)
Return the depth of a point in a box.

Parameters:
p - the X, Y and Z coordinates of the point to test.
Returns:
The depth of the point. Points inside the box will have a positive depth, points outside it will have a negative depth, and points on the surface will have a depth of zero.