Back to class index
| OBB::posSyntaxfloat4 OBB::pos; [1 line of code]The center position of this OBB. In the local space of the OBB, the center of this OBB is at (r.x,r.y,r.z), and the OBB is an AABB with size 2*r. Syntaxfloat4 OBB::r; [1 line of code]Stores half-sizes to x, y and z directions in the local space of this OBB. These members should be positive to represent a non-degenerate OBB. Syntaxfloat4 OBB::axis[3]; [1 line of code]Specifies normalized direction vectors for the local axes. [noscript] axis[0] specifies the +X direction in the local space of this OBB, axis[1] the +Y direction and axis[2] the +Z direction. The scale of these vectors is always normalized. The half-length of the OBB along its local axes is specified by the vector r. The axis vectors must always be orthonormal. Be sure to guarantee that condition holds if you directly set to this member variable. |