aboutsummaryrefslogtreecommitdiffstats
path: root/src/vec3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/vec3.cpp')
-rw-r--r--src/vec3.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vec3.cpp b/src/vec3.cpp
index afc4c97..8e27a98 100644
--- a/src/vec3.cpp
+++ b/src/vec3.cpp
@@ -5,6 +5,7 @@
vec3::vec3(): x(0.0), y(0.0), z(0.0) {}
+vec3::vec3(float x): x(x), y(x), z(x) {}
vec3::vec3(float x, float y, float z): x(x), y(y), z(z) {}
vec3 vec3::operator-() const {