diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-07-11 00:50:27 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-07-11 00:50:27 +0200 |
| commit | 23e6a58d59b7a11cb8bdb7aa61d3c534c02027e7 (patch) | |
| tree | aa62fe9d75f4b82a0caee70d3bf14fa1e0b617b2 /include/vec3.hpp | |
| parent | d676e9a2fb533494d1558483e8266605b1d5b632 (diff) | |
Refactor includes & improve compile time
Add platform defined to CMakeLists.txt
Diffstat (limited to 'include/vec3.hpp')
| -rw-r--r-- | include/vec3.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/vec3.hpp b/include/vec3.hpp index 673bd83..e3be2a4 100644 --- a/include/vec3.hpp +++ b/include/vec3.hpp @@ -1,7 +1,6 @@ #ifndef __VEC3_HPP_ #define __VEC3_HPP_ -#include <ostream> #include <xmmintrin.h> class vec3 { @@ -43,6 +42,8 @@ class vec3 { bool near_zero() const; + void print() const; + static vec3 random(); static vec3 random(float min, float max); @@ -68,8 +69,6 @@ vec3 reflect(const vec3& v, const vec3& n); vec3 refract(const vec3& uv, const vec3& n, float etai_over_etat); -std::ostream& operator<<(std::ostream& out, vec3 vec); - using point3 = vec3; using color = vec3; |
