50 #include "AnimationHelper.hh"
55 template<
typename Scalar>
57 float bezierParam = AnimationHelper::approximateCubicBezierParameter<Scalar>(_atX, P0_.first, P1_.first, C0_.first, C1_.first);
58 return AnimationHelper::evaluateBezier<Scalar>(bezierParam, P0_.second, P1_.second, C0_.second, C1_.second);
63 template<
typename Scalar>
65 typedef std::vector<Scalar> Scalars;
67 Scalars p0_x; p0_x.push_back(P0_.first);
68 Scalars p1_x; p1_x.push_back(P1_.first);
69 Scalars c0_x; c0_x.push_back(C0_.first);
70 Scalars c1_x; c1_x.push_back(C1_.first);
72 return AnimationHelper::evaluateBezier<Scalar>(1.0f, p0_x, p1_x, c0_x, c1_x)[0];
77 template<
typename Scalar>
79 typedef std::vector<Scalar> Scalars;
81 Scalars p0_x; p0_x.push_back(P0_.first);
82 Scalars p1_x; p1_x.push_back(P1_.first);
83 Scalars c0_x; c0_x.push_back(C0_.first);
84 Scalars c1_x; c1_x.push_back(C1_.first);
86 return AnimationHelper::evaluateBezier<Scalar>(0.0f, p0_x, p1_x, c0_x, c1_x)[0];
91 template<
typename Scalar>
92 typename BezierInterpolationT<Scalar>::Point&
99 template<
typename Scalar>
100 typename BezierInterpolationT<Scalar>::Point&
107 template<
typename Scalar>
108 typename BezierInterpolationT<Scalar>::Point&
115 template<
typename Scalar>
116 typename BezierInterpolationT<Scalar>::Point&