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]);