#include <Ray.h>
Public Member Functions | |
Ray (void) | |
constructor | |
Ray (const Vector3 &o, const Vector3 &d) | |
constructor | |
Vector3 | origin () const |
origin accessor | |
Vector3 | direction () const |
direction accessor | |
Ray | unit (void) |
unit operator | |
virtual void | transform (const AffineTransform &r) |
the transformation operator | |
virtual Real | intersect (const Vector4 &h) |
intersection with a plane operator | |
virtual Real | intersect (const Triangle &p, const Vector4 &plane) virtual Inode *intersect(const Triangle &p |
intersection with plane operator | |
Static Public Member Functions | |
static Vector3 | ray_point (const Vector3 &r, Real t) |
pointing operator | |
Data Fields | |
virtual Real const Vector4 & | plane |
The Ray class simulates the optic processes ray with an origin and a direction.
NOTE : this class absorved most methods related to ray present on prims and poly.