# MBoundingBox

## Constants

None.

## Static Methods

None.

## Static Attributes

None.

## Constructors

Signature | Parameters | Description
--- | --- | ---
MBoundingBox() |  | Default constructor. Returns a new, empty bounding box with, with both corners set to (0, 0, 0).
MBoundingBox(src) | src - MBoundingBox | Copy constructor. Returns a new bounding box with the same corners as src
MBoundingBox(min,max) | min - MPoint max - MPoint | Returns a new bounding box whose minimum and maximum values are specified by min and max, respectively.

## Object Methods

Signature | Parameters | Returns | Description
--- | --- | --- | ---
clear() |  | New reference to self. | Empties bounding box, setting its corners to (0, 0, 0).
transformUsing(matrix) | matrix - MMatrix | New reference to self. | Multiplies bounding box's corners by matrix and returns the smallest bounding box which contains the results.
expand(point) | point - MPoint | New reference to self. | Expands bounding box to include point.
expand(box) | box - MBoundingBox | New reference to self. | Expands bounding box to include all of box.
contains(point) | point - MPoint | bool | Returns True if point lies within bounding box.
intersects(box,tolerance=0.0) | box - MBoundingBox tolerance - float | bool | Returns True if any part of box lies within a distance of tolerance of this bounding box.

## Object Attributes

Name | Type | Access | Description
--- | --- | --- | ---
min | MPoint | R | Bounding box's minimum values.
max | MPoint | R | Bounding box's maximum values.
center | MPoint | R | Center of bounding box.
width | float | R | Width (size in X) of bounding box.
height | float | R | Height (size in Y) of bounding box.
depth | float | R | Depth (size in Z) of bounding box.

## Sequence Support

None.

## Number Support

None.

## Comparison Support

None.

© 2011 Autodesk, Inc. All rights reserved.