Intersection betwen a ray and an object. More...
#include <raytracing.hpp>
Public Member Functions | |
Intersection (Vector3f point=Vector3f{0.0f, 0.0f, 0.0f}, Vector3f normal=Vector3f{1.0f, 0.0f, 0.0f}, float distance=0.0f) | |
Constructor. | |
const Vector3f & | point (void) const |
Return intersection point. | |
bool | set_point (Vector3f point) |
Update intersection point. | |
const Vector3f & | normal (void) const |
Return normal vector. | |
bool | set_normal (Vector3f normal) |
Update normal. | |
float | distance (void) const |
Return distance. | |
bool | set_distance (float distance) |
Update normal. |
Intersection betwen a ray and an object.
Constructor.
point | Intersection point |
normal | Normal to surface at intersection |
distance | Distance from intersection point to ray origin |