50 #ifndef SKELETON_ANIMATIONHELPER_HH
51 #define SKELETON_ANIMATIONHELPER_HH
77 template<
typename Scalar>
83 template<
typename Scalar>
84 static std::vector<Scalar>
evaluateBezier(
float at, std::vector<Scalar> _P0, std::vector<Scalar> _P1, std::vector<Scalar> _C0, std::vector<Scalar> _C1);
87 template<
typename Scalar>
88 static Scalar clampTo01Interval(Scalar _value);
90 template<
typename Scalar>
91 static Scalar abs(Scalar _value);
95 #if defined(INCLUDE_TEMPLATES) && !defined(ANIMATIONHELPER_CC)
96 #define ANIMATIONHELPER_TEMPLATES
97 #include "AnimationHelper.cc"
101 #endif //SKELETON_ANIMATIONHELPER_HH
static float approximateCubicBezierParameter(Scalar _atX, Scalar _P0X, Scalar _P1X, Scalar _C0X, Scalar _C1X)
Approximates the parameter value for a Bezier curve to get a certain x value Does an iterative DeCast...
static std::vector< Scalar > evaluateBezier(float at, std::vector< Scalar > _P0, std::vector< Scalar > _P1, std::vector< Scalar > _C0, std::vector< Scalar > _C1)
Evaluates the cubic Bezier curve parameterized by P0, P1, C0 and C1 at the parameter value "at"...