code for assignment 3
[MicroTrace.git] / Vec3f.hxx
index 6b67d5b..81c0c8b 100644 (file)
--- a/Vec3f.hxx
+++ b/Vec3f.hxx
@@ -11,7 +11,7 @@
 #endif
 
 
-#define Epsilon 1E-4
+#define Epsilon 1E-3
 #define Infinity HUGE_VAL
 
 //! Standard operators and useful methods for 3d vectors
@@ -68,6 +68,8 @@ public:
   float operator[](unsigned int i) const;
   float& operator[](unsigned int i);
  
+  //! clamp each element to [0,1]
+  void clamp();
 private:
   float m_values[3];
 };
This page took 0.041522 seconds and 4 git commands to generate.