TinyRaytracer 0.1
A simple C++ raytracer
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ObjectInfo Class Reference

ObjectInfo is a class that passes the parameters of a ray hit, and the details of the object that was hit. More...

#include <object.hpp>

Public Member Functions

 ObjectInfo (double distance, point3 i_point, vec3 normal, Materials mat)
 

Public Attributes

bool isHit = false
 Signals if there was a hit. Defaults to false.
 
double distance
 The distance from the ray origin to the object.
 
point3 i_point
 The intersection point.
 
vec3 normal
 The normal at the point of intersection.
 
Materials mat
 Material properties.
 

Detailed Description

ObjectInfo is a class that passes the parameters of a ray hit, and the details of the object that was hit.


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