Panda3D
 All Classes Functions Variables Enumerations
physxRay.h
1 // Filename: physxRay.h
2 // Created by: enn0x (21Oct09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef PHYSXRAY_H
16 #define PHYSXRAY_H
17 
18 #include "pandabase.h"
19 #include "luse.h"
20 
21 #include "config_physx.h"
22 
23 ////////////////////////////////////////////////////////////////////
24 // Class : PhysxRay
25 // Description : Represents an ray as an origin and direction.
26 // The ray will be infinite if no length is given.
27 ////////////////////////////////////////////////////////////////////
28 class EXPCL_PANDAPHYSX PhysxRay {
29 
30 PUBLISHED:
31  INLINE PhysxRay();
32  INLINE ~PhysxRay();
33 
34  void set_length(float length);
35  void set_origin(const LPoint3f &origin);
36  void set_direction(const LVector3f &direction);
37 
38  float get_length() const;
39  LPoint3f get_origin() const;
40  LVector3f get_direction() const;
41 
42 public:
43  NxRay _ray;
44  NxReal _length;
45 };
46 
47 #include "physxRay.I"
48 
49 #endif // PHYSRAY_H
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
Definition: lvector3.h:100
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
Definition: lpoint3.h:99
Represents an ray as an origin and direction.
Definition: physxRay.h:28