Back to index

nux  3.0.0
Tweening.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2010 Inalogic® Inc.
00003  *
00004  * This program is free software: you can redistribute it and/or modify it
00005  * under the terms of the GNU Lesser General Public License, as
00006  * published by the  Free Software Foundation; either version 2.1 or 3.0
00007  * of the License.
00008  *
00009  * This program is distributed in the hope that it will be useful, but
00010  * WITHOUT ANY WARRANTY; without even the implied warranties of
00011  * MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
00012  * PURPOSE.  See the applicable version of the GNU Lesser General Public
00013  * License for more details.
00014  *
00015  * You should have received a copy of both the GNU Lesser General Public
00016  * License along with this program. If not, see <http://www.gnu.org/licenses/>
00017  *
00018  * Authored by: Jay Taoko <jaytaoko@inalogic.com>
00019  *
00020  */
00021 
00022 
00023 #ifndef TWEENING_H
00024 #define TWEENING_H
00025 
00026 
00027 namespace nux
00028 {
00029 
00030 // Back
00031   double BackEaseIn (double t, double b, double c, double d, double s = 1.70158);
00032   double BackEaseOut (double t, double b, double c, double d, double s = 1.70158);
00033   double BackEaseInOut (double t, double b, double c, double d, double s = 1.70158);
00034 // Bounce
00035   double BounceEaseOut (double t, double b, double c, double d);
00036   double BounceEaseIn (double t, double b, double c, double d);
00037   double BounceEaseInOut (double t, double b, double c, double d);
00038 // Circ
00039   double CircEaseIn (double t, double b, double c, double d);
00040   double CircEaseOut (double t, double b, double c, double d);
00041   double CircEaseInOut (double t, double b, double c, double d);
00042 // Cubic
00043   double CubicEaseIn (double t, double b, double c, double d);
00044   double CubicEaseOut (double t, double b, double c, double d);
00045   double CubicEaseInOut (double t, double b, double c, double d);
00046 // Elastic
00047   double ElasticEaseIn (double t, double b, double c, double d, double a, double p);
00048   double ElasticEaseOut (double t, double b, double c, double d, double a, double p);
00049   double ElasticEaseInOut (double t, double b, double c, double d, double a, double p);
00050 // Expo
00051   double ExpoEaseIn (double t, double b, double c, double d);
00052   double ExpoEaseOut (double t, double b, double c, double d);
00053   double ExpoEaseInOut (double t, double b, double c, double d);
00054 // Linear
00055   double LinearEaseNone (double t, double b, double c, double d);
00056   double LinearEaseIn (double t, double b, double c, double d);
00057   double LinearEaseOut (double t, double b, double c, double d);
00058   double LinearEaseInOut (double t, double b, double c, double d);
00059 // Quad
00060   double QuadEaseIn (double t, double b, double c, double d);
00061   double QuadEaseOut (double t, double b, double c, double d);
00062   double QuadEaseInOut (double t, double b, double c, double d);
00063 // Quart
00064   double QuartEaseIn (double t, double b, double c, double d);
00065   double QuartEaseOut (double t, double b, double c, double d);
00066   double QuartEaseInOut (double t, double b, double c, double d);
00067 // Quint
00068   double QuintEaseIn (double t, double b, double c, double d);
00069   double QuintEaseOut (double t, double b, double c, double d);
00070   double QuintEaseInOut (double t, double b, double c, double d);
00071 // Sine
00072   double SineEaseIn (double t, double b, double c, double d);
00073   double SineEaseOut (double t, double b, double c, double d);
00074   double SineEaseInOut (double t, double b, double c, double d);
00075 
00076 }
00077 
00078 #endif // TWEENING_H
00079