org.ogre4j
Interface IAxisAlignedBox

All Superinterfaces:
INativeObject
All Known Implementing Classes:
AxisAlignedBox

public interface IAxisAlignedBox
extends INativeObject


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

operatorAssignment

IAxisAlignedBox operatorAssignment(IAxisAlignedBox rhs)

getMinimum_const

IVector3 getMinimum_const()

getMinimum

IVector3 getMinimum()
Gets a modifiable version of the minimum corner of the box.


getMaximum_const

IVector3 getMaximum_const()

getMaximum

IVector3 getMaximum()
Gets a modifiable version of the maximum corner of the box.


setMinimum

void setMinimum(IVector3 vec)
Sets the minimum corner of the box.


setMinimum

void setMinimum(float x,
                float y,
                float z)

setMinimumX

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


setMinimumY

void setMinimumY(float y)

setMinimumZ

void setMinimumZ(float z)

setMaximum

void setMaximum(IVector3 vec)
Sets the maximum corner of the box.


setMaximum

void setMaximum(float x,
                float y,
                float z)

setMaximumX

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


setMaximumY

void setMaximumY(float y)

setMaximumZ

void setMaximumZ(float z)

setExtents

void setExtents(IVector3 _min,
                IVector3 _max)
Sets both minimum and maximum extents at once.


setExtents

void setExtents(float mx,
                float my,
                float mz,
                float Mx,
                float My,
                float Mz)

getAllCorners

IVector3 getAllCorners()
Returns a pointer to an array of 8 corner points, useful for collision vs. non-aligned objects.


getCorner

void getCorner(IVector3 returnValue,
               AxisAlignedBox.CornerEnum cornerToGet)
gets the position of one of the corners


merge

void merge(IAxisAlignedBox rhs)
Merges the passed in box into the current box. The result is the box which encompasses both.


merge

void merge(IVector3 point)
Extends the box to encompass the specified point (if needed).


transform

void transform(IMatrix4 matrix)
Transforms the box according to the matrix supplied.


transformAffine

void transformAffine(IMatrix4 m)
Transforms the box according to the affine matrix supplied.


setNull

void setNull()
Sets the box to a 'null' value i.e. not a box.


isNull

boolean isNull()
Returns true if the box is null i.e. empty.


isFinite

boolean isFinite()
Returns true if the box is finite.


setInfinite

void setInfinite()
Sets the box to 'infinite'


isInfinite

boolean isInfinite()
Returns true if the box is infinite.


intersects

boolean intersects(IAxisAlignedBox b2)
Returns whether or not this box intersects another.


intersection

void intersection(IAxisAlignedBox returnValue,
                  IAxisAlignedBox b2)

volume

float volume()

scale

void scale(IVector3 s)
Scales the AABB by the vector given.


intersects

boolean intersects(ISphere s)
Tests whether this box intersects a sphere.


intersects

boolean intersects(IPlane p)
Tests whether this box intersects a plane.


intersects

boolean intersects(IVector3 v)
Tests whether the vector point is within this box.


getCenter

void getCenter(IVector3 returnValue)

getSize

void getSize(IVector3 returnValue)

getHalfSize

void getHalfSize(IVector3 returnValue)

contains

boolean contains(IVector3 v)
Tests whether the given point contained by this box.


contains

boolean contains(IAxisAlignedBox other)
Tests whether another box contained by this box.


operatorEqual

boolean operatorEqual(IAxisAlignedBox rhs)
Tests 2 boxes for equality.


operatorNotEqual

boolean operatorNotEqual(IAxisAlignedBox rhs)
Tests 2 boxes for inequality.



Copyright © 2007 netAllied GmbH. All Rights Reserved.