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 vec3getOrigin () const
 
void setDirection (const vec3 &_direction)
 
const vec3getDirection () const
 
void set (const vec3 &_origin, const vec3 &_direction)
 
std::pair< vec3, vec3testRay (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()

ege::Ray::Ray ( const vec3 _origin = vec3(0, 0, 0),
const vec3 _direction = vec3(0, 0, 1) 
)

Contructor.

Parameters
_originThe ray's origin.
_directionThe ray's direction.

§ ~Ray()

ege::Ray::~Ray ( )
inline

Destructor.

Member Function Documentation

§ getDirection()

const vec3& ege::Ray::getDirection ( ) const
inline

Gets the ray's direction.

Returns
The ray's direction.

§ getOrigin()

const vec3& ege::Ray::getOrigin ( ) const
inline

Gets the ray's origin.

Returns
The ray's origin.

§ set()

void ege::Ray::set ( const vec3 _origin,
const vec3 _direction 
)

Sets this ray to the specified values.

Parameters
[in]_originThe ray's origin.
[in]_directionThe ray's direction.

§ setDirection()

void ege::Ray::setDirection ( const vec3 _direction)

Sets the ray's direction.

Parameters
[in]_directionThe new direction vector.

§ setOrigin()

void ege::Ray::setOrigin ( const vec3 _origin)

Set the ray's origin.

Parameters
[in]_originThe new origin.

The documentation for this class was generated from the following file:
  • framework/atria-soft/ege/ege/Ray.hpp