Properties | |
| DzVec3 | max |
| Number | maxX |
| Number | maxY |
| Number | maxZ |
| DzVec3 | min |
| Number | minX |
| Number | minY |
| Number | minZ |
Constructors | |
| DzBox3 (Number xMin, Number yMin, Number zMin, Number xMax, Number yMax, Number zMax) | |
| DzBox3 (DzVec3 min, DzVec3 max) | |
| DzBox3 (DzBox3 box) | |
Methods | |
| DzVec3 | getCenter () |
| Number | getSize () |
| DzBox3 | getTransformedBox (DzMatrix3 mat) |
| void | include (DzBox3 box) |
| void | include (DzVec3 point) |
| void | translate (DzVec3 vec) |
Represents a 3D box by storing two 3D vectors - an upper and lower corner for the box.
| DzBox3::DzBox3 | ( | DzBox3 | box | ) |
Copy Constructor.
| box | The box to copy. |
Creates an initialized box with the given min and max values.
| min | The minimum corner of the box. | |
| max | The maximum corner of the box. |
Creates an initialized box with the given min and max values.
| xmin | The minimum value for the box on the x axis | |
| ymin | The minimum value for the box on the y axis | |
| zmin | The minimum value for the box on the z axis | |
| xmax | The maximum value for the box on the x axis | |
| ymax | The maximum value for the box on the y axis | |
| zmax | The maximum value for the box on the z axis |
| DzVec3 DzBox3::getCenter | ( | ) |
| Number DzBox3::getSize | ( | ) |
Creates a new box by transforming the corners of this box through the given matrix and then including them.
| void DzBox3::include | ( | DzBox3 | box | ) |
Grows the box, if necessary, to include the given box.
| box | The box to include in the box |
| void DzBox3::include | ( | DzVec3 | point | ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| pnt | The point to include in the box |
| void DzBox3::translate | ( | DzVec3 | vec | ) |
Translates the corners of the box by adding the given vector.
The maximum corner of the box
The maximum value of the box on the x axis
The maximum value of the box on the y axis
The maximum value of the box on the z axis
The minimum corner of the box
The minimum value of the box on the x axis
The minimum value of the box on the y axis
The minimum value of the box on the z axis