TinyRaytracer 0.1
A simple C++ raytracer
|
Class Ray, consists of a eye and direction. More...
#include <struct.hpp>
Public Member Functions | |
Ray (double x, double y) | |
Construct a Ray object with the xy location of the coordinates. More... | |
Ray (point3 eye, vec3 dir, int bounce) | |
Public Attributes | |
point3 | eye |
vec3 | dir |
int | bounce |
Class Ray, consists of a eye and direction.
Ray::Ray | ( | double | x, |
double | y | ||
) |
Construct a Ray object with the xy location of the coordinates.
x | width location of the pixel |
y | height location of the pixel |
Only for primary ray generation.