(hopefully) finished Box::Clip()
[MicroTrace.git] / Vec3f.hxx
index 6b67d5b..eef3409 100644 (file)
--- a/Vec3f.hxx
+++ b/Vec3f.hxx
@@ -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.020518 seconds and 4 git commands to generate.