|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAxisAlignedBox
| Method Summary | |
|---|---|
boolean |
contains(IAxisAlignedBox other)
Tests whether another box contained by this box. |
boolean |
contains(IVector3 v)
Tests whether the given point contained by this box. |
IVector3 |
getAllCorners()
Returns a pointer to an array of 8 corner points, useful for collision vs. non-aligned objects. |
void |
getCenter(IVector3 returnValue)
|
void |
getCorner(IVector3 returnValue,
AxisAlignedBox.CornerEnum cornerToGet)
gets the position of one of the corners |
void |
getHalfSize(IVector3 returnValue)
|
IVector3 |
getMaximum_const()
|
IVector3 |
getMaximum()
Gets a modifiable version of the maximum corner of the box. |
IVector3 |
getMinimum_const()
|
IVector3 |
getMinimum()
Gets a modifiable version of the minimum corner of the box. |
void |
getSize(IVector3 returnValue)
|
void |
intersection(IAxisAlignedBox returnValue,
IAxisAlignedBox b2)
|
boolean |
intersects(IAxisAlignedBox b2)
Returns whether or not this box intersects another. |
boolean |
intersects(IPlane p)
Tests whether this box intersects a plane. |
boolean |
intersects(ISphere s)
Tests whether this box intersects a sphere. |
boolean |
intersects(IVector3 v)
Tests whether the vector point is within this box. |
boolean |
isFinite()
Returns true if the box is finite. |
boolean |
isInfinite()
Returns true if the box is infinite. |
boolean |
isNull()
Returns true if the box is null i.e. empty. |
void |
merge(IAxisAlignedBox rhs)
Merges the passed in box into the current box. |
void |
merge(IVector3 point)
Extends the box to encompass the specified point (if needed). |
IAxisAlignedBox |
operatorAssignment(IAxisAlignedBox rhs)
|
boolean |
operatorEqual(IAxisAlignedBox rhs)
Tests 2 boxes for equality. |
boolean |
operatorNotEqual(IAxisAlignedBox rhs)
Tests 2 boxes for inequality. |
void |
scale(IVector3 s)
Scales the AABB by the vector given. |
void |
setExtents(float mx,
float my,
float mz,
float Mx,
float My,
float Mz)
|
void |
setExtents(IVector3 _min,
IVector3 _max)
Sets both minimum and maximum extents at once. |
void |
setInfinite()
Sets the box to 'infinite' |
void |
setMaximum(float x,
float y,
float z)
|
void |
setMaximum(IVector3 vec)
Sets the maximum corner of the box. |
void |
setMaximumX(float x)
Changes one of the components of the maximum corner of the box used to resize only one dimension of the box |
void |
setMaximumY(float y)
|
void |
setMaximumZ(float z)
|
void |
setMinimum(float x,
float y,
float z)
|
void |
setMinimum(IVector3 vec)
Sets the minimum corner of the box. |
void |
setMinimumX(float x)
Changes one of the components of the minimum corner of the box used to resize only one dimension of the box |
void |
setMinimumY(float y)
|
void |
setMinimumZ(float z)
|
void |
setNull()
Sets the box to a 'null' value i.e. not a box. |
void |
transform(IMatrix4 matrix)
Transforms the box according to the matrix supplied. |
void |
transformAffine(IMatrix4 m)
Transforms the box according to the affine matrix supplied. |
float |
volume()
|
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
IAxisAlignedBox operatorAssignment(IAxisAlignedBox rhs)
IVector3 getMinimum_const()
IVector3 getMinimum()
IVector3 getMaximum_const()
IVector3 getMaximum()
void setMinimum(IVector3 vec)
void setMinimum(float x,
float y,
float z)
void setMinimumX(float x)
void setMinimumY(float y)
void setMinimumZ(float z)
void setMaximum(IVector3 vec)
void setMaximum(float x,
float y,
float z)
void setMaximumX(float x)
void setMaximumY(float y)
void setMaximumZ(float z)
void setExtents(IVector3 _min,
IVector3 _max)
void setExtents(float mx,
float my,
float mz,
float Mx,
float My,
float Mz)
IVector3 getAllCorners()
void getCorner(IVector3 returnValue,
AxisAlignedBox.CornerEnum cornerToGet)
void merge(IAxisAlignedBox rhs)
void merge(IVector3 point)
void transform(IMatrix4 matrix)
void transformAffine(IMatrix4 m)
void setNull()
boolean isNull()
boolean isFinite()
void setInfinite()
boolean isInfinite()
boolean intersects(IAxisAlignedBox b2)
void intersection(IAxisAlignedBox returnValue,
IAxisAlignedBox b2)
float volume()
void scale(IVector3 s)
boolean intersects(ISphere s)
boolean intersects(IPlane p)
boolean intersects(IVector3 v)
void getCenter(IVector3 returnValue)
void getSize(IVector3 returnValue)
void getHalfSize(IVector3 returnValue)
boolean contains(IVector3 v)
boolean contains(IAxisAlignedBox other)
boolean operatorEqual(IAxisAlignedBox rhs)
boolean operatorNotEqual(IAxisAlignedBox rhs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||