|Back to class index|
Syntaxfloat3 OBB::pos; [1 line of code]
The center position of this OBB.
Syntaxfloat3 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.
Syntaxfloat3 OBB::axis; [1 line of code]
Specifies normalized direction vectors for the local axes. [noscript]
axis specifies the +X direction in the local space of this OBB, axis the +Y direction and axis 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.
Leave a Comment