![]() |
Public API Reference |
Version of the csOBB with frozen corners (for optimization purposes). More...
#include <csgeom/obb.h>
Public Member Functions | |
| void | Copy (const csOBB &obb) |
| Copy a normal OBB and freeze the corners. | |
| void | Copy (const csOBB &obb, const csReversibleTransform &trans) |
| Copy a normal OBB and freeze the corners. | |
| csOBBFrozen () | |
| Create an empty csOBBFrozen which is not initialized. | |
| csOBBFrozen (const csOBB &obb) | |
| Create a frozen OBB from a normal OBB. | |
| csOBBFrozen (const csOBB &obb, const csReversibleTransform &trans) | |
| Create a frozen OBB from a normal OBB. | |
| const csVector3 & | GetCorner (int corner) const |
| Get one corner from the OBB. | |
| bool | ProjectOBB (float fov, float sx, float sy, csBox2 &sbox, float &min_z, float &max_z) |
| Project this OBB to a 2D screen space box. | |
| bool | ProjectOBB (const CS::Math::Matrix4 &projection, csBox2 &sbox, float &min_z, float &max_z, int screenWidth, int screenHeight) |
| Project this OBB to a 2D screen space box. | |
Version of the csOBB with frozen corners (for optimization purposes).
| csOBBFrozen::csOBBFrozen | ( | ) | [inline] |
Create an empty csOBBFrozen which is not initialized.
| csOBBFrozen::csOBBFrozen | ( | const csOBB & | obb | ) | [inline] |
| csOBBFrozen::csOBBFrozen | ( | const csOBB & | obb, |
| const csReversibleTransform & | trans | ||
| ) | [inline] |
| void csOBBFrozen::Copy | ( | const csOBB & | obb | ) | [inline] |
| void csOBBFrozen::Copy | ( | const csOBB & | obb, |
| const csReversibleTransform & | trans | ||
| ) |
Copy a normal OBB and freeze the corners.
| const csVector3& csOBBFrozen::GetCorner | ( | int | corner | ) | const [inline] |
| bool csOBBFrozen::ProjectOBB | ( | float | fov, |
| float | sx, | ||
| float | sy, | ||
| csBox2 & | sbox, | ||
| float & | min_z, | ||
| float & | max_z | ||
| ) |
Project this OBB to a 2D screen space box.
Returns false if OBB is not on screen.
| bool csOBBFrozen::ProjectOBB | ( | const CS::Math::Matrix4 & | projection, |
| csBox2 & | sbox, | ||
| float & | min_z, | ||
| float & | max_z, | ||
| int | screenWidth, | ||
| int | screenHeight | ||
| ) |
Project this OBB to a 2D screen space box.
Returns false if OBB is not on screen.