Assignments Assignments

Public Member Functions | Public Attributes | List of all members
Ray::RayShapeIntersectionInfo Class Reference

`#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

## Detailed Description

If a ray intersects a shape, the shape information at the point of intersection is stored in this class.

## Constructor & Destructor Documentation

## ◆ RayShapeIntersectionInfo()

RayShapeIntersectionInfo::RayShapeIntersectionInfo | ( | void |  | ) |

The default constructor (setting the time to intersection at Infinity)

## Member Function Documentation

## ◆ operator<() [1/2]

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

## ◆ operator<() [2/2]

bool RayShapeIntersectionInfo::operator< | ( | double | t | ) | const

Checks if the time to intersection of the first object is before the prescribed

## Member Data Documentation

## ◆ normal

Util::Point3D Ray::RayShapeIntersectionInfo::normal

The normal of the shape at the point of intersection

## ◆ position

Util::Point3D Ray::RayShapeIntersectionInfo::position

The position, in world coordinates, of the intersection

## ◆ t

double Ray::RayShapeIntersectionInfo::t

The time to intersection

## ◆ texture

Util::Point2D Ray::RayShapeIntersectionInfo::texture

The texture coordinates of the the shape at the point of intersection

The documentation for this class was generated from the following files:

- Assignments/Ray/scene.h
- Assignments/Ray/scene.cpp