From Magnus Kessler, "remove unecessary conversion from float in double precision method"
This commit is contained in:
parent
aab27e106c
commit
68412a1784
@ -83,7 +83,7 @@ class OSG_EXPORT AnimationPath : public virtual osg::Object
|
||||
|
||||
inline void interpolate(double ratio,const ControlPoint& first, const ControlPoint& second)
|
||||
{
|
||||
double one_minus_ratio = 1.0f-ratio;
|
||||
double one_minus_ratio = 1.0-ratio;
|
||||
_position = first._position*one_minus_ratio + second._position*ratio;
|
||||
_rotation.slerp(ratio,first._rotation,second._rotation);
|
||||
_scale = first._scale*one_minus_ratio + second._scale*ratio;
|
||||
|
Loading…
Reference in New Issue
Block a user