Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The Ray class defines a ray as an origin and direction using real precision. More...
#include <Ray.hpp>
Public Member Functions | |
const vec3 & | direction () const |
const vec3 & | origin () const |
void | setDirection (const vec3 &dir) |
void | setOrigin (const vec3 &orig) |
Protected Attributes | |
vec3 | mDirection |
vec3 | mOrigin |
The Ray class defines a ray as an origin and direction using real precision.
Definition at line 41 of file Ray.hpp.
const vec3& vl::Ray::direction | ( | ) | const [inline] |
Definition at line 44 of file Ray.hpp.
References mDirection.
Referenced by vl::RayIntersector::intersectTriangle().
const vec3& vl::Ray::origin | ( | ) | const [inline] |
Definition at line 45 of file Ray.hpp.
References mOrigin.
Referenced by vl::RayIntersector::intersectTriangle().
void vl::Ray::setDirection | ( | const vec3 & | dir ) | [inline] |
Definition at line 46 of file Ray.hpp.
References mDirection.
Referenced by vl::Camera::computeRay().
void vl::Ray::setOrigin | ( | const vec3 & | orig ) | [inline] |
vec3 vl::Ray::mDirection [protected] |
Definition at line 50 of file Ray.hpp.
Referenced by direction(), and setDirection().
vec3 vl::Ray::mOrigin [protected] |
Definition at line 51 of file Ray.hpp.
Referenced by origin(), and setOrigin().