Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

KX_PositionInterpolator.h

Go to the documentation of this file.
00001 #ifndef KX_POSITIONINTERPOLATOR
00002 #define KX_POSITIONINTERPOLATOR
00003 
00004 #include "KX_IInterpolator.h"
00005 
00006 class MT_Point3;
00007 class KX_IScalarInterpolator;
00008 
00009 class KX_PositionInterpolator : public KX_IInterpolator {
00010 public:
00011         KX_PositionInterpolator(MT_Point3& target, 
00012                                                         KX_IScalarInterpolator *ipos[]) :
00013                 m_target(target) 
00014         {
00015                 m_ipos[0] = ipos[0]; 
00016                 m_ipos[1] = ipos[1]; 
00017                 m_ipos[2] = ipos[2];
00018         }
00019 
00020         virtual void Execute(float currentTime) const;
00021 
00022 private:
00023         MT_Point3&               m_target;
00024         KX_IScalarInterpolator *m_ipos[3];
00025 };
00026 
00027 #endif

Generated at Thu Feb 1 13:03:06 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000