Add world representation as hittable list
This commit is contained in:
parent
68ae1fb265
commit
1eeb328b60
4 changed files with 39 additions and 14 deletions
19
rtweekend.hpp
Normal file
19
rtweekend.hpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#ifndef RTWEEKEND_H
|
||||
#define RTWEEKEND_H
|
||||
|
||||
#include <math.h>
|
||||
#include <memory>
|
||||
|
||||
/* Utility functions */
|
||||
double degrees_to_radians(double d)
|
||||
{
|
||||
return d * M_PI / 180;
|
||||
}
|
||||
|
||||
/* Common internal headers */
|
||||
|
||||
#include "ray.hpp"
|
||||
#include "vec3.hpp"
|
||||
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue