Claudette
 All Classes Namespaces Files Functions Enumerations Enumerator Friends Macros
ray_collision_test.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "base_collision_test.h"
4 
5 namespace Claudette {
6 
10 {
11 public:
13  enum Search
14  {
18  SearchFirstTriangle
19  };
20 
23 
24  const float* rayOrigin() const;
25  void setRayOrigin(float x, float y, float z);
26 
27  const float* rayDirection() const;
28  void setRayDirection(float x, float y, float z);
29 
30  float raySegmentMin() const;
31  float raySegmentMax() const;
35  void setRaySegmentBounds(float min = 0.f, float max = 3.4e+38f);
36 
37  Search raySearch() const;
38  void setRaySearch(Search srh);
39 
40 private:
41  float m_rayOrigin[3];
42  float m_rayDirection[3];
43  float m_raySegMin;
44  float m_raySegMax;
45  RayCollisionTest::Search m_raySearch;
46 };
47 
48 } // namespace Claudette
Collision test with a ray.
#define CLAUDETTE_LIB_EXPORT
Definition: global.h:21
Search
Search option for the colliding triangle.
Search closest triangle on the ray (will slow the test considerably)
Base class for all collision tests.