aboutsummaryrefslogtreecommitdiffstats
path: root/include/vec3.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/vec3.hpp')
-rw-r--r--include/vec3.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vec3.hpp b/include/vec3.hpp
index 39aab6e..6291e30 100644
--- a/include/vec3.hpp
+++ b/include/vec3.hpp
@@ -18,6 +18,8 @@ class vec3 {
vec3& operator/=(float numerator);
+ float operator[](int axis);
+
float length() const;
float length_sq() const;