Public Member Functions | |
AxisAlignedBox (Vector3 min, Vector3 max) | |
bool | IsInside (Vector3 point) |
void | Transform (Matrix4 matrix) |
void | SetExtents (Vector3 min, Vector3 max) |
void | Scale (Vector3 factor) |
void | Merge (AxisAlignedBox box) |
object | Clone () |
Properties | |
Vector3 | Center |
Vector3 | Maximum |
Vector3 | Minimum |
Vector3[] | Corners |
bool | IsNull |
AxisAlignedBox | Null |
|
Tells if the point is inside the box. The point to test with. True if the point is inside the box, False otherwise. |
|
Allows for merging two boxes together (combining). |
|
Scales the size of the box by the supplied factor. Factor of scaling to apply to the box. |
|
Sets both Minimum and Maximum at once, so that UpdateCorners only needs to be called once as well. |
|
|
|
Gets the center point of this bounding box. |
|
Returns an array of 8 corner points, useful for collision vs. non-aligned objects. If the order of these corners is important, they are as follows: The 4 points of the minimum Z face (note that because we use right-handed coordinates, the minimum Z is at the 'back' of the box) starting with the minimum point of all, then anticlockwise around this face (if you are looking onto the face from outside the box). Then the 4 points of the maximum Z face, starting with maximum point of all, then anticlockwise around this face (looking onto the face from outside the box). Like this:
|
|
Gets/Sets the value of whether this box is null (i.e. not dimensions, etc). |
|
Gets/Sets the maximum corner of the box. |
|
Gets/Sets the minimum corner of the box. |
|
Returns a null box |