version 3.3

VRS::Ray Class Reference

3D Ray. More...

#include <vrs/ray.h>

List of all members.

Public Member Functions

 VRS_SERIALIZABLE_NO_SO_CLASS (Ray)
 Ray (const Vector &origin=Vector::origin, const Vector &dir=Vector(0.0, 0.0, 1.0))
 A ray is specified by its origin an its direction in 3D.
bool operator== (const Ray &other) const
bool operator!= (const Ray &other) const
void setOrigin (const Vector &orig)
const VectorgetOrigin () const
 Set resp. get the origin of the ray.
void setDirection (const Vector &dir)
const VectorgetDirection () const
 Set resp. get the direction of the ray.

Friends

VRS_CORE_API Ray operator* (const Matrix &matrix, const Ray &ray)
 A ray can be transformed by multiplication with a 4x4 Matrix.


Detailed Description

3D Ray.

Constructor & Destructor Documentation

VRS::Ray::Ray ( const Vector origin = Vector::origin,
const Vector dir = Vector(0.0, 0.0, 1.0) 
) [explicit]

A ray is specified by its origin an its direction in 3D.


Member Function Documentation

VRS::Ray::VRS_SERIALIZABLE_NO_SO_CLASS ( Ray   ) 

bool VRS::Ray::operator== ( const Ray other  )  const

bool VRS::Ray::operator!= ( const Ray other  )  const

void VRS::Ray::setOrigin ( const Vector orig  )  [inline]

const Vector & VRS::Ray::getOrigin (  )  const [inline]

Set resp. get the origin of the ray.

void VRS::Ray::setDirection ( const Vector dir  )  [inline]

const Vector & VRS::Ray::getDirection ( void   )  const [inline]

Set resp. get the direction of the ray.


Friends And Related Function Documentation

VRS_CORE_API Ray operator* ( const Matrix matrix,
const Ray ray 
) [friend]

A ray can be transformed by multiplication with a 4x4 Matrix.


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

Generated on Tue May 22 06:00:27 2012 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact