ege::Ray Class Reference
Public Member Functions | |
| Ray (const vec3 &_origin=vec3(0, 0, 0), const vec3 &_direction=vec3(0, 0, 1)) | |
| ~Ray () | |
| void | setOrigin (const vec3 &_origin) |
| const vec3 & | getOrigin () const |
| void | setDirection (const vec3 &_direction) |
| const vec3 & | getDirection () const |
| void | set (const vec3 &_origin, const vec3 &_direction) |
| std::pair< vec3, vec3 > | testRay (ege::physics::Engine &_engine) |
| std::pair< ememory::SharedPtr< ege::Element >, std::pair< vec3, vec3 > > | testRayObject (ege::physics::Engine &_engine) |
| vec3 | testRayZeroPlane () |
Constructor & Destructor Documentation
§ Ray()
Contructor.
- Parameters
-
_origin The ray's origin. _direction The ray's direction.
§ ~Ray()
|
inline |
Destructor.
Member Function Documentation
§ getDirection()
|
inline |
Gets the ray's direction.
- Returns
- The ray's direction.
§ getOrigin()
|
inline |
Gets the ray's origin.
- Returns
- The ray's origin.
§ set()
Sets this ray to the specified values.
- Parameters
-
[in] _origin The ray's origin. [in] _direction The ray's direction.
§ setDirection()
| void ege::Ray::setDirection | ( | const vec3 & | _direction | ) |
Sets the ray's direction.
- Parameters
-
[in] _direction The new direction vector.
§ setOrigin()
| void ege::Ray::setOrigin | ( | const vec3 & | _origin | ) |
Set the ray's origin.
- Parameters
-
[in] _origin The new origin.
The documentation for this class was generated from the following file:
- framework/atria-soft/ege/ege/Ray.hpp
1.8.12