RobinTrace
rop.h
Go to the documentation of this file.
1 
2 #ifndef ROP_H
3 #define ROP_H
4 
5 #include "base/Vec3.h"
6 #include "ray/ray.h"
7 #include <cmath>
8 
10 void reflect (ray &r, const Vec3 &N);
12 void refract (ray &r, const Vec3 &N, double nr);
13 
14 #endif // ROP_H
Eigen::Vector3d Vec3
Definition: Vec3.h:11
Class for individual rays.
Definition: ray.h:9
void reflect(ray &r, const Vec3 &N)
Reflect ray operation.
Definition: rop.cpp:9
void refract(ray &r, const Vec3 &N, double nr)
Refract ray operation.
Definition: rop.cpp:23