cee::Ray Class Reference

A ray that can be used for intersection testing. More...

Public Member Functions

 Ray ()
 Constructs and empty ray object. More...
 
 Ray (const Ray &other)
 Copy constructor. More...
 
Rayoperator= (const Ray &other)
 Assignment operator. More...
 
Vec3d origin () const
 Returns the ray origin. More...
 
void setOrigin (const Vec3d &orig)
 Sets the origin (starting point) of the ray. More...
 
Vec3d direction () const
 Returns the ray direction. More...
 
void setDirection (const Vec3d &dir)
 Sets the direction of the ray. More...
 
double pointAndLineSizeInPixels () const
 Returns the point and line size in pixels. More...
 
void setPointAndLineSizeInPixels (double sizeInPixels)
 Sets the point and line size (in pixels) More...
 

Detailed Description

A ray that can be used for intersection testing.

See also
Camera::rayFromWindowCoordinates()

Constructor & Destructor Documentation

cee::Ray::Ray ( )

Constructs and empty ray object.

cee::Ray::Ray ( const Ray other)

Copy constructor.

Member Function Documentation

Vec3d cee::Ray::direction ( ) const

Returns the ray direction.

Ray & cee::Ray::operator= ( const Ray other)

Assignment operator.

Vec3d cee::Ray::origin ( ) const

Returns the ray origin.

double cee::Ray::pointAndLineSizeInPixels ( ) const

Returns the point and line size in pixels.

void cee::Ray::setDirection ( const Vec3d dir)

Sets the direction of the ray.

void cee::Ray::setOrigin ( const Vec3d orig)

Sets the origin (starting point) of the ray.

void cee::Ray::setPointAndLineSizeInPixels ( double  sizeInPixels)

Sets the point and line size (in pixels)