voxelTerrain
 All Classes Functions Variables Typedefs Enumerations Pages
Public Member Functions | Protected Attributes | List of all members
blub::ray Class Reference

Public Member Functions

 ray (const Ogre::Ray &vec)
 
 operator Ogre::Ray () const
 
 ray (const vector3 &origin, const vector3 &direction)
 
void setOrigin (const vector3 &origin)
 
const vector3getOrigin (void) const
 
void setDirection (const vector3 &dir)
 
const vector3getDirection (void) const
 
vector3 getPoint (real t) const
 
vector3 operator* (real t) const
 
bool intersects (const plane &pl, vector3 *point=nullptr, real *tOut=nullptr) const
 

Protected Attributes

vector3 mOrigin
 
vector3 mDirection
 

Member Function Documentation

const vector3& blub::ray::getDirection ( void  ) const
inline

Gets the direction of the ray.

const vector3& blub::ray::getOrigin ( void  ) const
inline

Gets the origin of the ray.

vector3 blub::ray::getPoint ( real  t) const
inline

Gets the position of a point t units along the ray.

vector3 blub::ray::operator* ( real  t) const
inline

Gets the position of a point t units along the ray.

void blub::ray::setDirection ( const vector3 dir)
inline

Sets the direction of the ray.

void blub::ray::setOrigin ( const vector3 origin)
inline

Sets the origin of the ray.


The documentation for this class was generated from the following files: