osgAnimation.InBounceFunction是OpenSceneGraph中的一个Bounce函数类型,表示在时间t内渐进地反转t内的一个值。
osgAnimation.InBounceFunction -> osgAnimation.BounceFunction -> osgAnimation.EaseFunction
osgAnimation.EaseFunction
InBounceFunction()
- 默认构造函数,创建一个新的InBounceFunction类型的实例。InBounceFunction(double magnitude)
- 构造函数,创建一个新的InBounceFunction类型的实例,设置其幅度。clone()
- 克隆函数,返回当前对象的副本。getMagnitude()
- 获取当前对象的幅度。getValue(double t)
- 获取在时间t内的对象的值,范围在0和1之间。osgAnimation::InBounceFunction* inbounceFunction = new osgAnimation::InBounceFunction(2.0);
double t = 0.5;
double value = inbounceFunction->getValue(t);
OpenSceneGraph开发人员