CLUalignedbox Struct Reference

Defines a axis aligned box (min, max). More...

#include <clu.h>


Data Fields

CLvertex min
CLvertex max


Detailed Description

The CLUalignedbox struct defines a axis aligned box. Can be mainly used to enclose an object or as a collision detection bounding box. The vertex min stores the min_x, min_y, and min_z of the box. The vertex max is used to store the max_x, max_y, and max_z of the box. These are essentially the dimensions of the box.

Example

  CLvertex min;
  CLvertex max;
  CLUalignedbox box;

  cluSetVertex(&min, -10.0f, -5.0f, 4.0f);
  cluSetNormal(&max, 10.0f, 5.0f, 8.0f);

  cluSetAlignedBox(&box, &min, &max);
  

Definition at line 354 of file clu.h.


Generated on Thu Dec 27 13:53:42 2007 for CLU by  doxygen 1.4.6