#include <aabbox3d.h>
| aabbox3d | ( | ) | [inline] |
| aabbox3d | ( | T | minx, | |
| T | miny, | |||
| T | minz, | |||
| T | maxx, | |||
| T | maxy, | |||
| T | maxz | |||
| ) | [inline] |
| void addInternalBox | ( | const aabbox3d< T > & | b | ) | [inline] |
Adds an other bounding box to the bounding box, causing it to grow bigger, if the box is outside of the box
| b,: | Other bounding box to add into this box. |
| void addInternalPoint | ( | T | x, | |
| T | y, | |||
| T | z | |||
| ) | [inline] |
Adds a point to the bounding box, causing it to grow bigger, if point is outside of the box.
| x,: | X Coordinate of the point to add to this box. | |
| y,: | Y Coordinate of the point to add to this box. | |
| z,: | Z Coordinate of the point to add to this box. |
| void addInternalPoint | ( | const vector3d< T > & | p | ) | [inline] |
Adds a point to the bounding box, causing it to grow bigger, if point is outside of the box
| p,: | Point to add into the box. |
| EIntersectionRelation3D classifyPlaneRelation | ( | const plane3d< f32 > & | plane | ) | const [inline] |
Classifies a relation with a plane.
| plane,: | Plane to classify relation to. |
| vector3d<T> getCenter | ( | ) | const [inline] |
| void getEdges | ( | vector3d< T > * | edges | ) | const [inline] |
stores all 8 edges of the box into a array
| edges,: | Pointer to array of 8 edges |
| vector3d<T> getExtent | ( | ) | const [inline] |
Calculates a new interpolated bounding box.
| other,: | other box to interpolate between | |
| d,: | value between 0.0f and 1.0f. |
Determinates if the box intersects with an other box.
| other,: | Other box to check a intersection with. |
| bool intersectsWithLine | ( | const vector3d< T > & | linemiddle, | |
| const vector3d< T > & | linevect, | |||
| T | halflength | |||
| ) | const [inline] |
Tests if the box intersects with a line
Tests if the box intersects with a line
| line,: | Line to test intersection with. |
| bool isEmpty | ( | ) | const [inline] |
returns if the box is empty, which means that there is no space within the min and the max edge.
Determinates if a point is within this box.
| p,: | Point to check. |
Determinates if a point is within this box and its borders.
| p,: | Point to check. |
| void repair | ( | ) | [inline] |
| void reset | ( | const vector3d< T > & | initValue | ) | [inline] |
| void reset | ( | const aabbox3d< T > & | initValue | ) | [inline] |
| void reset | ( | T | x, | |
| T | y, | |||
| T | z | |||
| ) | [inline] |
1.5.1-p1