TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Frustum.h
Go to the documentation of this file.
1 
10 #ifndef G3D_Frustum_h
11 #define G3D_Frustum_h
12 
13 #include "G3D/platform.h"
14 #include "G3D/g3dmath.h"
15 #include "G3D/Plane.h"
16 #include "G3D/SmallArray.h"
17 #include "G3D/Vector4.h"
18 
19 namespace G3D {
20 
21 class Box;
22 
24 class Frustum {
25 public:
26  class Face {
27  public:
29  int vertexIndex[4];
30 
33  };
34 
43 
50 
52  Box boundingBox(float minObjectSpaceDepth = finf()) const;
53 };
54 
55 } // namespace G3D
56 
57 #endif
float finf()
Definition: g3dmath.cpp:71
Definition: Frustum.h:24
Definition: Plane.h:25
Definition: SmallArray.h:23
int vertexIndex[4]
Definition: Frustum.h:29
Definition: AABox.h:25
An arbitrary (oriented) 3D box, useful as a bounding box.
Definition: Box.h:35
SmallArray< Face, 6 > faceArray
Definition: Frustum.h:49
Plane plane
Definition: Frustum.h:32
Box boundingBox(float minObjectSpaceDepth=finf()) const
SmallArray< Vector4, 8 > vertexPos
Definition: Frustum.h:42
Definition: Frustum.h:26