Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The RayIntersection encapsulates all the information relative to a Ray/Actor intersection. More...
#include <RayIntersector.hpp>
Public Member Functions | |
RayIntersection () | |
void | setActor (Actor *a) |
The intersected Actor. | |
const Actor * | actor () const |
The intersected Actor. | |
Actor * | actor () |
The intersected Actor. | |
const vec3 & | intersectionPoint () const |
The intersection point, in world coordinates. | |
void | setIntersectionPoint (const vec3 &v) |
The intersection point, in world coordinates. | |
real | distance () const |
The intersection distance. | |
void | setDistance (real dist) |
The intersection distance. | |
Protected Attributes | |
vec3 | mIntersectionPoint |
Actor * | mActor |
real | mDistance |
The RayIntersection encapsulates all the information relative to a Ray/Actor intersection.
Definition at line 50 of file RayIntersector.hpp.
vl::RayIntersection::RayIntersection | ( | ) | [inline] |
Definition at line 55 of file RayIntersector.hpp.
References VL_DEBUG_SET_OBJECT_NAME.
void vl::RayIntersection::setActor | ( | Actor * | a ) | [inline] |
const Actor* vl::RayIntersection::actor | ( | ) | const [inline] |
Actor* vl::RayIntersection::actor | ( | ) | [inline] |
const vec3& vl::RayIntersection::intersectionPoint | ( | ) | const [inline] |
The intersection point, in world coordinates.
Definition at line 68 of file RayIntersector.hpp.
References mIntersectionPoint.
void vl::RayIntersection::setIntersectionPoint | ( | const vec3 & | v ) | [inline] |
The intersection point, in world coordinates.
Definition at line 70 of file RayIntersector.hpp.
References mIntersectionPoint.
real vl::RayIntersection::distance | ( | ) | const [inline] |
void vl::RayIntersection::setDistance | ( | real | dist ) | [inline] |
vec3 vl::RayIntersection::mIntersectionPoint [protected] |
Reimplemented in vl::RayIntersectionGeometry.
Definition at line 78 of file RayIntersector.hpp.
Referenced by intersectionPoint(), and setIntersectionPoint().
Actor* vl::RayIntersection::mActor [protected] |
Definition at line 79 of file RayIntersector.hpp.
Referenced by actor(), and setActor().
real vl::RayIntersection::mDistance [protected] |
Reimplemented in vl::RayIntersectionGeometry.
Definition at line 80 of file RayIntersector.hpp.
Referenced by distance(), and setDistance().