From Wojciech Lawandowski, "Fixed EllipsoidModel::computeLocalUpVector to use Vec3d instead of Vec3 for

normal computation. Its really small issue, maybe not even worth submitting
;-). But one never knows when inadequate precision hits him.
"
This commit is contained in:
Robert Osfield 2008-02-25 13:17:30 +00:00
parent 847a384101
commit d003972a5f

View File

@ -218,7 +218,7 @@ inline void EllipsoidModel::computeLocalToWorldTransformFromXYZ(double X, double
inline osg::Vec3d EllipsoidModel::computeLocalUpVector(double X, double Y, double Z) const
{
osg::Vec3 normal(X,Y,Z);
osg::Vec3d normal(X,Y,Z);
normal.normalize();
return normal;
}