#include <Ray.h>
Public Member Functions | |
| Ray () | |
| Ray (const Vec3f &aOrigin, const Vec3f &aDirection) | |
| void | setOrigin (const Vec3f &aOrigin) |
| const Vec3f & | getOrigin () const |
| void | setDirection (const Vec3f &aDirection) |
| const Vec3f & | getDirection () const |
| const Vec3f & | getInverseDirection () const |
| char | getSignX () const |
| char | getSignY () const |
| char | getSignZ () const |
| Vec3f | calcPosition (float t) const |
| bool | calcTriangleIntersection (const Vec3f &vert0, const Vec3f &vert1, const Vec3f &vert2, float *result) const |
| bool | calcPlaneIntersection (const Vec3f &origin, const Vec3f &normal, float *result) const |
Protected Attributes | |
| Vec3f | mOrigin |
| Vec3f | mDirection |
| char | mSignX |
| char | mSignY |
| char | mSignZ |
| Vec3f | mInvDirection |
| cinder::Ray::Ray | ( | ) |
| cinder::Ray::Ray | ( | const Vec3f & | aOrigin, |
| const Vec3f & | aDirection | ||
| ) |
| void cinder::Ray::setOrigin | ( | const Vec3f & | aOrigin | ) |
| const Vec3f& cinder::Ray::getOrigin | ( | ) | const |
| void cinder::Ray::setDirection | ( | const Vec3f & | aDirection | ) |
| const Vec3f& cinder::Ray::getDirection | ( | ) | const |
| const Vec3f& cinder::Ray::getInverseDirection | ( | ) | const |
| char cinder::Ray::getSignX | ( | ) | const |
| char cinder::Ray::getSignY | ( | ) | const |
| char cinder::Ray::getSignZ | ( | ) | const |
| Vec3f cinder::Ray::calcPosition | ( | float | t | ) | const |
| bool cinder::Ray::calcTriangleIntersection | ( | const Vec3f & | vert0, |
| const Vec3f & | vert1, | ||
| const Vec3f & | vert2, | ||
| float * | result | ||
| ) | const |
| bool cinder::Ray::calcPlaneIntersection | ( | const Vec3f & | origin, |
| const Vec3f & | normal, | ||
| float * | result | ||
| ) | const |
Vec3f cinder::Ray::mOrigin [protected] |
Vec3f cinder::Ray::mDirection [protected] |
char cinder::Ray::mSignX [protected] |
char cinder::Ray::mSignY [protected] |
char cinder::Ray::mSignZ [protected] |
Vec3f cinder::Ray::mInvDirection [protected] |