#include <bbox.h>
Collaboration diagram for LsgBBox:

Data Fields | |
| LsgObject | super |
| Vertex | min |
| Vertex | max |
| int | valid |
Related Functions | |
| (Note that these are not member functions.) | |
| LsgBBox * | LsgBBox_create (void) |
| void | LsgBBox_init (LsgBBox *self) |
| void | LsgBBox_clear (LsgBBox *self) |
| void | LsgBBox_combine (LsgBBox *self, const LsgBBox *box) |
| void | LsgBBox_include (LsgBBox *self, Vertex v) |
| void | LsgBBox_transform (LsgBBox *self, Matrix tm) |
| int | LsgBBox_contains (LsgBBox *self, Vertex v) |
| int | LsgBBox_visible (LsgBBox *self, LsgFrustum *frustum) |
| void | LsgBBox_nearest (LsgBBox *self, Vertex v, Vertex n) |
An axis aligned bounding box
|
|
Allocate and initialize a bounding box. |
|
|
Constructor method for LsgBBox. Initially set the bounding box state to invalid.
|
|
|
Clear the bounding box volume. Set the bounding box state to invalid. Min and max are undefined.
|
|
||||||||||||
|
Include another bounding box in the bounded volume.
|
|
||||||||||||
|
Add a vertex to the bounded volume.
|
|
||||||||||||
|
Transform the bounding box with a matrix.
|
|
||||||||||||
|
Check if the bounding box contains a vertex.
|
|
||||||||||||
|
Check if any part of the bounding box is inside a given view frustum.
|
|
||||||||||||||||
|
Compute the point nearest to a given vertex that is still inside the bounded volume.
|