15 #define USE_ELASTIC_BLEND
18 float time,
float begin,
float change,
float duration,
float overshoot)
21 return change *
time *
time * ((overshoot + 1) *
time - overshoot) + begin;
25 float time,
float begin,
float change,
float duration,
float overshoot)
28 return change * (
time *
time * ((overshoot + 1) *
time + overshoot) + 1) + begin;
32 float time,
float begin,
float change,
float duration,
float overshoot)
35 if ((
time /= duration / 2) < 1.0f) {
36 return change / 2 * (
time *
time * ((overshoot + 1) *
time - overshoot)) + begin;
39 return change / 2 * (
time *
time * ((overshoot + 1) *
time + overshoot) + 2) + begin;
45 if (
time < (1 / 2.75f)) {
46 return change * (7.5625f *
time *
time) + begin;
48 if (
time < (2 / 2.75f)) {
49 time -= (1.5f / 2.75f);
50 return change * ((7.5625f *
time) *
time + 0.75f) + begin;
52 if (
time < (2.5f / 2.75f)) {
53 time -= (2.25f / 2.75f);
54 return change * ((7.5625f *
time) *
time + 0.9375f) + begin;
56 time -= (2.625f / 2.75f);
57 return change * ((7.5625f *
time) *
time + 0.984375f) + begin;
67 if (
time < duration / 2) {
71 change * 0.5f + begin;
88 if ((
time /= duration / 2) < 1.0f) {
109 if ((
time /= duration / 2) < 1.0f) {
116 #ifdef USE_ELASTIC_BLEND
122 float time,
float change,
float duration,
float amplitude,
float s,
float f)
129 f *= amplitude /
fabsf(change);
137 f = (f *
l) + (1.0f -
l);
146 float time,
float begin,
float change,
float duration,
float amplitude,
float period)
155 if ((
time /= duration) == 1.0f) {
156 return begin + change;
160 period = duration * 0.3f;
162 if (!amplitude || amplitude <
fabsf(change)) {
164 #ifdef USE_ELASTIC_BLEND
173 return (-f * (amplitude *
powf(2, 10 *
time) *
174 sinf((
time * duration - s) * (2 * (
float)
M_PI) / period))) +
179 float time,
float begin,
float change,
float duration,
float amplitude,
float period)
187 if ((
time /= duration) == 1.0f) {
188 return begin + change;
192 period = duration * 0.3f;
194 if (!amplitude || amplitude <
fabsf(change)) {
196 #ifdef USE_ELASTIC_BLEND
205 return (f * (amplitude *
powf(2, 10 *
time) *
206 sinf((
time * duration - s) * (2 * (
float)
M_PI) / period))) +
211 float time,
float begin,
float change,
float duration,
float amplitude,
float period)
219 if ((
time /= duration / 2) == 2.0f) {
220 return begin + change;
224 period = duration * (0.3f * 1.5f);
226 if (!amplitude || amplitude <
fabsf(change)) {
228 #ifdef USE_ELASTIC_BLEND
239 return (f * (amplitude *
powf(2, 10 *
time) *
240 sinf((
time * duration - s) * (2 * (
float)
M_PI) / period))) +
246 return (f * (amplitude *
powf(2, 10 *
time) *
247 sinf((
time * duration - s) * (2 * (
float)
M_PI) / period))) +
252 static const float pow_scale = 1.0f / (1.0f - 0.0009765625f);
272 float duration_half = duration / 2.0f;
273 float change_half = change / 2.0f;
274 if (
time <= duration_half) {
278 time - duration_half, begin + change_half, change_half, duration_half);
283 return change *
time / duration + begin;
289 return change *
time *
time + begin;
295 return -change *
time * (
time - 2) + begin;
300 if ((
time /= duration / 2) < 1.0f) {
301 return change / 2 *
time *
time + begin;
304 return -change / 2 * (
time * (
time - 2) - 1) + begin;
321 if ((
time /= duration / 2) < 1.0f) {
340 if ((
time /= duration / 2) < 1.0f) {
349 return -change *
cosf(
time / duration * (
float)
M_PI_2) + change + begin;
359 return -change / 2 * (
cosf((
float)
M_PI *
time / duration) - 1) + begin;
typedef float(TangentPoint)[2]
Strict compiler flags for areas of code we want to ensure don't do conversions without us knowing abo...
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei GLsizei GLenum type _GL_VOID_RET _GL_VOID GLsizei GLenum GLenum const void *pixels _GL_VOID_RET _GL_VOID const void *pointer _GL_VOID_RET _GL_VOID GLdouble v _GL_VOID_RET _GL_VOID GLfloat v _GL_VOID_RET _GL_VOID GLint GLint i2 _GL_VOID_RET _GL_VOID GLint j _GL_VOID_RET _GL_VOID GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble GLdouble GLdouble zFar _GL_VOID_RET _GL_UINT GLdouble *equation _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLenum GLfloat *v _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLfloat *values _GL_VOID_RET _GL_VOID GLushort *values _GL_VOID_RET _GL_VOID GLenum GLfloat *params _GL_VOID_RET _GL_VOID GLenum GLdouble *params _GL_VOID_RET _GL_VOID GLenum GLint *params _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_BOOL GLfloat param _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLushort pattern _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLint GLdouble GLdouble GLint GLint const GLdouble *points _GL_VOID_RET _GL_VOID GLdouble GLdouble u2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLint GLdouble GLdouble v2 _GL_VOID_RET _GL_VOID GLenum GLfloat param _GL_VOID_RET _GL_VOID GLenum GLint param _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLdouble GLdouble nz _GL_VOID_RET _GL_VOID GLfloat GLfloat nz _GL_VOID_RET _GL_VOID GLint GLint nz _GL_VOID_RET _GL_VOID GLshort GLshort nz _GL_VOID_RET _GL_VOID GLsizei const void *pointer _GL_VOID_RET _GL_VOID GLsizei const GLfloat *values _GL_VOID_RET _GL_VOID GLsizei const GLushort *values _GL_VOID_RET _GL_VOID GLint param _GL_VOID_RET _GL_VOID const GLuint const GLclampf *priorities _GL_VOID_RET _GL_VOID GLdouble y _GL_VOID_RET _GL_VOID GLfloat y _GL_VOID_RET _GL_VOID GLint y _GL_VOID_RET _GL_VOID GLshort y _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLfloat GLfloat z _GL_VOID_RET _GL_VOID GLint GLint z _GL_VOID_RET _GL_VOID GLshort GLshort z _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble w _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat w _GL_VOID_RET _GL_VOID GLint GLint GLint w _GL_VOID_RET _GL_VOID GLshort GLshort GLshort w _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble y2 _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat y2 _GL_VOID_RET _GL_VOID GLint GLint GLint y2 _GL_VOID_RET _GL_VOID GLshort GLshort GLshort y2 _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLdouble GLdouble z _GL_VOID_RET _GL_VOID GLuint *buffer _GL_VOID_RET _GL_VOID GLdouble t _GL_VOID_RET _GL_VOID GLfloat t _GL_VOID_RET _GL_VOID GLint t _GL_VOID_RET _GL_VOID GLshort t _GL_VOID_RET _GL_VOID GLdouble t
ATTR_WARN_UNUSED_RESULT const BMLoop * l
float BLI_easing_sine_ease_in(float time, float begin, float change, float duration)
float BLI_easing_back_ease_out(float time, float begin, float change, float duration, float overshoot)
float BLI_easing_linear_ease(float time, float begin, float change, float duration)
float BLI_easing_bounce_ease_in_out(float time, float begin, float change, float duration)
float BLI_easing_quint_ease_out(float time, float begin, float change, float duration)
float BLI_easing_quart_ease_in_out(float time, float begin, float change, float duration)
float BLI_easing_circ_ease_in_out(float time, float begin, float change, float duration)
float BLI_easing_quart_ease_out(float time, float begin, float change, float duration)
float BLI_easing_bounce_ease_in(float time, float begin, float change, float duration)
float BLI_easing_circ_ease_in(float time, float begin, float change, float duration)
float BLI_easing_expo_ease_in(float time, float begin, float change, float duration)
float BLI_easing_expo_ease_out(float time, float begin, float change, float duration)
float BLI_easing_elastic_ease_in(float time, float begin, float change, float duration, float amplitude, float period)
float BLI_easing_quad_ease_in_out(float time, float begin, float change, float duration)
float BLI_easing_elastic_ease_out(float time, float begin, float change, float duration, float amplitude, float period)
float BLI_easing_cubic_ease_in(float time, float begin, float change, float duration)
float BLI_easing_elastic_ease_in_out(float time, float begin, float change, float duration, float amplitude, float period)
float BLI_easing_quint_ease_in(float time, float begin, float change, float duration)
float BLI_easing_sine_ease_out(float time, float begin, float change, float duration)
float BLI_easing_bounce_ease_out(float time, float begin, float change, float duration)
float BLI_easing_quad_ease_in(float time, float begin, float change, float duration)
float BLI_easing_quad_ease_out(float time, float begin, float change, float duration)
float BLI_easing_circ_ease_out(float time, float begin, float change, float duration)
float BLI_easing_cubic_ease_out(float time, float begin, float change, float duration)
float BLI_easing_back_ease_in(float time, float begin, float change, float duration, float overshoot)
static float elastic_blend(float time, float change, float duration, float amplitude, float s, float f)
float BLI_easing_quint_ease_in_out(float time, float begin, float change, float duration)
float BLI_easing_expo_ease_in_out(float time, float begin, float change, float duration)
static const float pow_min
float BLI_easing_quart_ease_in(float time, float begin, float change, float duration)
static const float pow_scale
float BLI_easing_back_ease_in_out(float time, float begin, float change, float duration, float overshoot)
float BLI_easing_cubic_ease_in_out(float time, float begin, float change, float duration)
float BLI_easing_sine_ease_in_out(float time, float begin, float change, float duration)