Commits

Joris Kluivers committed 6372a12

Added list of available functions to read me

Comments (0)

Files changed (1)

 - **start**: the initial value for time=0.0
 - **end**: the resulting value for time=1.0
 
+## Available functions
+
+See `JKInterpolationMath.h`:
+
+```
+/* Linear interpolation */
+CGFloat JKLinearInterpolation(CGFloat t, CGFloat start, CGFloat end);
+
+/* Quadric interpolation t^2 */
+CGFloat JKQuadraticInInterpolation(CGFloat t, CGFloat start, CGFloat end);
+CGFloat JKQuadraticOutInterpolation(CGFloat t, CGFloat start, CGFloat end);
+CGFloat JKQuadraticInOutInterpolation(CGFloat t, CGFloat start, CGFloat end);
+
+/* Cubic interpolation t^3 */
+CGFloat JKCubicInInterpolation(CGFloat t, CGFloat start, CGFloat end);
+CGFloat JKCubicOutInterpolation(CGFloat t, CGFloat start, CGFloat end);
+CGFloat JKCubicInOutInterpolation(CGFloat t, CGFloat start, CGFloat end);
+
+/* Exponential interpolation 2^t */
+CGFloat JKExponentialInInterpolation(CGFloat t, CGFloat start, CGFloat end);
+CGFloat JKExponentialOutInterpolation(CGFloat t, CGFloat start, CGFloat end);
+CGFloat JKExponentialInOutInterpolation(CGFloat t, CGFloat start, CGFloat end);
+
+/* Sinusoidal interpolation cos(t) / sin(t) */
+CGFloat JKSinusoidalInInterpolation(CGFloat t, CGFloat start, CGFloat end);
+CGFloat JKSinusoidalOutInterpolation(CGFloat t, CGFloat start, CGFloat end);
+CGFloat JKSinusoidalInOutInterpolation(CGFloat t, CGFloat start, CGFloat end);
+```
+
 ## Generator project
 
 The Generator utility generates a JSON output with interpolations for each of the functions, to be shown in a graph like: