aboutsummaryrefslogtreecommitdiffstats
path: root/include/vec3.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/vec3.hpp')
-rw-r--r--include/vec3.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vec3.hpp b/include/vec3.hpp
index 7b0e469..317f99b 100644
--- a/include/vec3.hpp
+++ b/include/vec3.hpp
@@ -28,6 +28,8 @@ class vec3 {
vec3 unit() const;
+ bool near_zero() const;
+
static vec3 random();
static vec3 random(double min, double max);
@@ -49,6 +51,8 @@ vec3 operator*(double scale, vec3 u);
vec3 operator/(vec3 u, double scale);
+vec3 reflect(vec3 v, vec3 n);
+
std::ostream& operator<<(std::ostream& out, vec3 vec);
vec3 random_in_unit_sphere();