From 23e6a58d59b7a11cb8bdb7aa61d3c534c02027e7 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Mon, 11 Jul 2022 00:50:27 +0200 Subject: Refactor includes & improve compile time Add platform defined to CMakeLists.txt --- include/vec3.hpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/vec3.hpp') 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 #include 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; -- cgit v1.3