OMToolkit
1.0
The polygonal mesh processing tool.
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
trunk
include
OMToolkit
OMTriBSPTreeRay.h
Go to the documentation of this file.
1
//==============================================================================
14
#ifndef OM_BSP_TREE_RAY_H
15
#define OM_BSP_TREE_RAY_H
16
17
#include <
OMToolkit\OMTypes.h
>
18
19
namespace
OMToolkit
20
{
24
class
OMRay
: OMToolkit::Types::ModuleMeshd::Point
25
{
26
27
public
:
28
typedef
OMToolkit::Types::ModuleMeshd::Point
PointT
;
29
33
OMRay
(
PointT
&origin,
PointT
&direction)
34
{
35
m_origin
= origin;
36
m_direction
= direction;
37
m_inv_dir
=
PointT
(1.0f/direction[0], 1.0f/direction[1], 1.0f/direction[2]);
38
m_posneg
[0] =
m_direction
[0] > 0 ? 0 : 1;
39
m_posneg
[1] =
m_direction
[1] > 0 ? 0 : 1;
40
m_posneg
[2] =
m_direction
[2] > 0 ? 0 : 1;
41
}
42
46
PointT
m_origin
;
47
51
PointT
m_direction
;
52
56
PointT
m_inv_dir
;
57
61
unsigned
int
m_posneg
[3];
62
};
63
}
64
65
#endif
Generated on Mon Apr 29 2013 08:21:52 for OMToolkit by
1.8.3.1