Commit 8f7ed1951d64d8c0e1ec67c1c12ea75aa75629c6

henry 2002-11-29T08:18:41

Added Move and operator +

diff --git a/include/FTBBox.h b/include/FTBBox.h
index ea5da4e..91dbd8a 100755
--- a/include/FTBBox.h
+++ b/include/FTBBox.h
@@ -6,6 +6,7 @@
 #include FT_GLYPH_H
 
 #include "FTGL.h"
+#include "FTPoint.h"
 
 
 /**
@@ -51,6 +52,32 @@ class FTGL_EXPORT FTBBox
         ~FTBBox()
         {}
         
+
+        /**
+         * Move the Bounding Box by a vector.
+         *
+         * @param distance The distance to move the bbox in 3D space.
+         */
+        FTBBox Move( FTPoint distance)
+        {
+            lowerX += distance.x;
+            lowerY += distance.y;
+            lowerZ += distance.z;
+            upperX += distance.x;
+            upperY += distance.y;
+            upperZ += distance.z;
+            return *this;
+        }
+
+        /**
+         * Operator + Adds two FTBBox's together
+         *
+         * @param a
+         * @param b
+         * @return
+         */
+        friend FTBBox operator + ( const FTBBox &a, const FTBBox &b);
+
         /**
          * The bounds of the box
          */