]> git.mxchange.org Git - simgear.git/commitdiff
Use template arguments instead of hard coded double.
authorfrohlich <frohlich>
Fri, 27 Feb 2009 06:05:36 +0000 (06:05 +0000)
committerTim Moore <timoore@redhat.com>
Fri, 27 Feb 2009 22:34:15 +0000 (23:34 +0100)
Modified Files:
simgear/math/SGTriangle.hxx

simgear/math/SGTriangle.hxx

index 888102cf5d8026bb86d2954af66eb13af0d727b5..2cba610a582648903fbd0142892af02df85c5f78 100644 (file)
@@ -41,9 +41,9 @@ public:
     _d[1] = v[2] - v[0];
   }
 
-  SGVec3d getCenter() const
+  SGVec3<T> getCenter() const
   {
-    SGBoxd box;
+    SGBox<T> box;
     box.expandBy(_v0);
     box.expandBy(_v0 + _d[0]);
     box.expandBy(_v0 + _d[1]);