Use template arguments instead of hard coded double.

Modified Files:
	simgear/math/SGTriangle.hxx
This commit is contained in:
frohlich
2009-02-27 06:05:36 +00:00
committed by Tim Moore
parent f04e559dc2
commit 4a4e8c87b8

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