From: frohlich Date: Fri, 27 Feb 2009 06:05:36 +0000 (+0000) Subject: Use template arguments instead of hard coded double. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4a4e8c87b8f5b224350d9407d529f8cfe8e68553;p=simgear.git Use template arguments instead of hard coded double. Modified Files: simgear/math/SGTriangle.hxx --- diff --git a/simgear/math/SGTriangle.hxx b/simgear/math/SGTriangle.hxx index 888102cf..2cba610a 100644 --- a/simgear/math/SGTriangle.hxx +++ b/simgear/math/SGTriangle.hxx @@ -41,9 +41,9 @@ public: _d[1] = v[2] - v[0]; } - SGVec3d getCenter() const + SGVec3 getCenter() const { - SGBoxd box; + SGBox box; box.expandBy(_v0); box.expandBy(_v0 + _d[0]); box.expandBy(_v0 + _d[1]);