Data Structures |
|
struct | RwBBox |
Functions |
|
RwBBox * | RwBBoxCalculate (RwBBox *boundBox, const RwV3d *verts, RwInt32 numVerts) |
RwBBox * | RwBBoxInitialize (RwBBox *boundBox, const RwV3d *vertex) |
RwBBox * | RwBBoxAddPoint (RwBBox *boundBox, const RwV3d *vertex) |
RwBool | RwBBoxContainsPoint (const RwBBox *boundBox, const RwV3d *vertex) |
RenderWare Graphics Bounding Box datatype. This object defines a bounding-box. It is used in a number of RenderWare objects to define sizes, boundaries or collision-detection zones. Aside from basic initialization, functionality is also provided for resizing the bounding-box to enclose an arbitrary point.
More information can be found in the Fundamentals chapter of the User Guide.
|
RwBBoxAddPoint is used to adjust the specified bounding-box so that it contains the specified vertex. The bounding-box must have been previously initialized with a single vertex or calculated from an array of vertices.
|
|
RwBBoxCalculate is used to calculate the axis-aligned bounding-box of the specified array of 3D points.
|
|
RwBBoxContainsPoint is used to test whether the specified vertex falls within the given bounding-box. Points lying exactly on the boxs boundary are considered to be inside the box.
|
|
RwBBoxInitialize is used to initialize a bounding-box. The bounding-box is initialized with both the infimum and supremum vertices set to the supplied vertex. A bounding-box normally has the infimum and supremum vertices set to different values, otherwise it is just a point. Therefore, initialization is a two-stage process actually completed by a making a subsequent call to the RwBBoxAddPoint function. (This two-stage system proves its usefulness when calculating bounding-boxes that contain an arbitrary number of vectors.)
|
Converted from CHM to HTML with chm2web Pro 2.85 (unicode) |