TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Intersect.h
Go to the documentation of this file.
1 
15 #ifndef G3D_Intersect
16 #define G3D_Intersect
17 
18 #include "G3D/platform.h"
19 #include "G3D/Ray.h"
20 #include "G3D/AABox.h"
21 
22 namespace G3D {
23 
27 class Intersect {
28 public:
29 
37  static bool __fastcall rayAABox(const Ray& ray, const AABox& box);
38 
50  static bool __fastcall rayAABox(const Ray& ray, const AABox& box, float& time);
51 };
52 
53 }
54 
55 #endif
#define __fastcall
Fast call is a register-based optimized calling convention supported only by Visual C++...
Definition: platform.h:55
Definition: Intersect.h:27
Definition: AABox.h:25
static bool __fastcall rayAABox(const Ray &ray, const AABox &box)
Returns true if the intersection of the ray and the solid box is non-empty.
Definition: Intersect.cpp:28
Definition: Ray.h:24
Definition: AABox.h:32