Show
Ignore:
Timestamp:
09/09/09 11:52:54 (5 years ago)
Author:
cedricpinson
Message:

From Michael Platings, I have removed Target::normalize() as calling it was incorrect - the interpolation is already done in such a way that the Target's value is always normalized.
Finally, I have fixed TemplateTarget?<osg::Quat>::lerp() as it was giving incorrect results when interpolating between some small rotations.
From Cedric Pinson, i renamed the method in channel to be more general. Adjusted the CubicBezier? key constructor to use a single value as input.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/include/osgAnimation/CubicBezier

    r9877 r10576  
    11/*  -*-c++-*-  
    2  *  Copyright (C) 2008 Cedric Pinson <mornifle@plopbyte.net> 
     2 *  Copyright (C) 2008 Cedric Pinson <cedric.pinson@plopbyte.net> 
    33 * 
    44 * This library is open source and may be redistributed and/or modified under   
     
    3737            mPoint[2] = v2; 
    3838        } 
     39        // Constructor with value only 
     40        TemplateCubicBezier(const T& v0)  
     41        { 
     42            mPoint[0] = v0; 
     43            mPoint[1] = v0; 
     44            mPoint[2] = v0; 
     45        } 
    3946 
    4047        TemplateCubicBezier() {}