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

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
 

Detailed Description

Class Ray, consists of a eye and direction.

Constructor & Destructor Documentation

◆ Ray()

Ray::Ray ( double  x,
double  y 
)

Construct a Ray object with the xy location of the coordinates.

Parameters
xwidth location of the pixel
yheight location of the pixel

Only for primary ray generation.


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