Assignments
Assignments
|
#include <scene.h>
Public Member Functions | |
RayShapeIntersectionInfo (void) | |
bool | operator< (const RayShapeIntersectionInfo &iInfo) const |
bool | operator< (double t) const |
Public Attributes | |
double | t |
Util::Point3D | position |
Util::Point3D | normal |
Util::Point2D | texture |
If a ray intersects a shape, the shape information at the point of intersection is stored in this class.
RayShapeIntersectionInfo::RayShapeIntersectionInfo | ( | void | ) |
The default constructor (setting the time to intersection at Infinity)
bool RayShapeIntersectionInfo::operator< | ( | const RayShapeIntersectionInfo & | iInfo | ) | const |
Checks if the time to intersection of the first object is before the time to intersection of the second
bool RayShapeIntersectionInfo::operator< | ( | double | t | ) | const |
Checks if the time to intersection of the first object is before the prescribed
Util::Point3D Ray::RayShapeIntersectionInfo::normal |
The normal of the shape at the point of intersection
Util::Point3D Ray::RayShapeIntersectionInfo::position |
The position, in world coordinates, of the intersection
double Ray::RayShapeIntersectionInfo::t |
The time to intersection
Util::Point2D Ray::RayShapeIntersectionInfo::texture |
The texture coordinates of the the shape at the point of intersection