15#ifndef OSGPARTICLE_LINEARINTERPOLATOR
16#define OSGPARTICLE_LINEARINTERPOLATOR
42 return y1 + (y2 - y1) * t;
47 return y1 + (y2 - y1) * t;
52 return y1 + (y2 - y1) * t;
57 return y1 + (y2 - y1) * t;
Vec2f Vec2
Definition Vec2:21
Vec3f Vec3
Definition Vec3:21
Vec4f Vec4
Definition Vec4:21
The osgParticle library is a NodeKit that extends the core scene graph to support particle effects.
Definition AccelOperator:27
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
Interpolator()
Definition Interpolator:32
virtual osg::Vec2 interpolate(float t, const osg::Vec2 &y1, const osg::Vec2 &y2) const
Interpolate between 2-dimensional vectors. Default behavior is to interpolate each component separate...
Definition LinearInterpolator:45
LinearInterpolator(const LinearInterpolator ©, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
Definition LinearInterpolator:35
virtual osg::Vec4 interpolate(float t, const osg::Vec4 &y1, const osg::Vec4 &y2) const
Interpolate between 4-dimensional vectors. Default behavior is to interpolate each component separate...
Definition LinearInterpolator:55
META_Object(osgParticle, LinearInterpolator)
virtual ~LinearInterpolator()
Definition LinearInterpolator:61
virtual float interpolate(float t, float y1, float y2) const
Interpolate between floats. Must be overridden in descendant classes.
Definition LinearInterpolator:40
virtual osg::Vec3 interpolate(float t, const osg::Vec3 &y1, const osg::Vec3 &y2) const
Interpolate between 3-dimensional vectors. Default behavior is to interpolate each component separate...
Definition LinearInterpolator:50
LinearInterpolator()
Definition LinearInterpolator:32