Lines Matching refs:t
22 int16_t Interpolation::GetBezierInterpolation(int16_t t, int16_t u0, int16_t u1, int16_t u2, int16_… in GetBezierInterpolation() argument
24 int64_t invT = 1024 - t; // Intergerlize the standard equation, 1.0f is divided into 1024 parts in GetBezierInterpolation()
27 int64_t t2 = t * t; in GetBezierInterpolation()
28 int64_t t3 = t2 * t; in GetBezierInterpolation()
31 ret += BEZIER_COEFFICIENT * invT2 * t * u1; in GetBezierInterpolation()
41 float Interpolation::GetBezierInterpolation(float t, float u0, float u1, float u2, float u3) in GetBezierInterpolation() argument
43 float invT = 1 - t; in GetBezierInterpolation()
46 float t2 = t * t; in GetBezierInterpolation()
47 float t3 = t2 * t; in GetBezierInterpolation()
50 ret += BEZIER_COEFFICIENT * invT2 * t * u1; in GetBezierInterpolation()
57 float Interpolation::GetBezierDerivative(float t, float u0, float u1, float u2, float u3) in GetBezierDerivative() argument
59 float invT = 1 - t; in GetBezierDerivative()
66 ret += BESSEL_SQUARE_COEFFICIENT * d1 * invT * t; in GetBezierDerivative()
67 ret += BEZIER_COEFFICIENT * d2 * t * t; in GetBezierDerivative()
76 float t = x; in GetBezierY() local
77 float xt = GetBezierInterpolation(t, 0, x1, x2, 1); in GetBezierY()
86 t = t + (x - xt) / GetBezierDerivative(t, 0, x1, x2, 1); in GetBezierY()
87 xt = GetBezierInterpolation(t, 0, x1, x2, 1); in GetBezierY()
89 return GetBezierInterpolation(t, 0, y1, y2, 1); in GetBezierY()