BCSTM-Player |
This commit is contained in:
22
external/tween-engine/include/TweenEngine/paths/CatmullRom.h
vendored
Normal file
22
external/tween-engine/include/TweenEngine/paths/CatmullRom.h
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
//
|
||||
// CatmullRom.h
|
||||
//
|
||||
// This code is derived from Universal Tween Engine
|
||||
// Licensed under Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#ifndef __CatmullRom__
|
||||
#define __CatmullRom__
|
||||
|
||||
#include <TweenEngine/TweenPath.h>
|
||||
|
||||
namespace TweenEngine
|
||||
{
|
||||
class CatmullRom : public TweenPath
|
||||
{
|
||||
float compute(float t, float *points, int pointsCnt);
|
||||
float catmullRomSpline(float a, float b, float c, float d, float t);
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* defined(__CatmullRom__) */
|
21
external/tween-engine/include/TweenEngine/paths/LinearPath.h
vendored
Normal file
21
external/tween-engine/include/TweenEngine/paths/LinearPath.h
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
//
|
||||
// Linear.h
|
||||
//
|
||||
// This code is derived from Universal Tween Engine
|
||||
// Licensed under Apache License 2.0 - http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
|
||||
#ifndef __LinearPath__
|
||||
#define __LinearPath__
|
||||
|
||||
#include <TweenEngine/TweenPath.h>
|
||||
|
||||
namespace TweenEngine
|
||||
{
|
||||
class LinearPath : public TweenPath
|
||||
{
|
||||
float compute(float t, float *points, int pointsCnt);
|
||||
};
|
||||
}
|
||||
|
||||
#endif /* defined(__LinearPath__) */
|
Reference in New Issue
Block a user