#include <box.h>
Inheritance diagram for Box:
Public Methods | |
Box () | |
Box (float x, float y, float z, float sx, float sy, float sz) | |
Box (const Vector3D& pos, const Vector3D& size) | |
Box (const Box& b) | |
virtual | ~Box () |
const Vector3D& | getPosition () const |
const Vector3D& | getSize () const |
const Vector3D& | getCenter () const |
float | getVolume () const |
bool | intersect (const Vector3D& O, const Vector3D& D) |
bool | intersect (const Vector3D& O, const Vector3D& D, float segmax) |
bool | intersect (const Vector3D& O, float radius) |
bool | intersect (const Vector3D& p) const |
bool | intersect (const Box& b) |
bool | intersect (const Box& b, RotationState& rs) |
Public Attributes | |
Vector3D | m_Pos |
Vector3D | m_Size |
Vector3D | m_Center |
|
Default constructor |
|
Construct from scalar corner position and size |
|
Construct from corner position and size |
|
Copy constructor |
|
|
|
Returns the center position of the box |
|
Returns the box's position |
|
Returns the sizes of the box's edges |
|
Returns the volume of the box |
|
Oriented box intersection. |
|
Aligned box intersection |
|
Point in box |
|
Sphere intersection |
|
Line segment intersection |
|
Ray intersection |
|
Position of box center. m_Pos+0.5f*m_Size; |
|
Position of box corner |
|
Size of box box edges |