42 #define USE_ELASTIC_BLEND
45 float time,
float begin,
float change,
float duration,
float overshoot)
48 return change *
time *
time * ((overshoot + 1) *
time - overshoot) + begin;
52 float time,
float begin,
float change,
float duration,
float overshoot)
55 return change * (
time *
time * ((overshoot + 1) *
time + overshoot) + 1) + begin;
59 float time,
float begin,
float change,
float duration,
float overshoot)
62 if ((
time /= duration / 2) < 1.0f) {
63 return change / 2 * (
time *
time * ((overshoot + 1) *
time - overshoot)) + begin;
66 return change / 2 * (
time *
time * ((overshoot + 1) *
time + overshoot) + 2) + begin;
72 if (
time < (1 / 2.75f)) {
73 return change * (7.5625f *
time *
time) + begin;
75 if (
time < (2 / 2.75f)) {
76 time -= (1.5f / 2.75f);
77 return change * ((7.5625f *
time) *
time + 0.75f) + begin;
79 if (
time < (2.5f / 2.75f)) {
80 time -= (2.25f / 2.75f);
81 return change * ((7.5625f *
time) *
time + 0.9375f) + begin;
83 time -= (2.625f / 2.75f);
84 return change * ((7.5625f *
time) *
time + 0.984375f) + begin;
94 if (
time < duration / 2) {
98 change * 0.5f + begin;
115 if ((
time /= duration / 2) < 1.0f) {
136 if ((
time /= duration / 2) < 1.0f) {
143 #ifdef USE_ELASTIC_BLEND
149 float time,
float change,
float duration,
float amplitude,
float s,
float f)
156 f *= amplitude /
fabsf(change);
164 f = (f *
l) + (1.0f -
l);
173 float time,
float begin,
float change,
float duration,
float amplitude,
float period)
182 if ((
time /= duration) == 1.0f) {
183 return begin + change;
187 period = duration * 0.3f;
189 if (!amplitude || amplitude <
fabsf(change)) {
191 #ifdef USE_ELASTIC_BLEND
200 return (-f * (amplitude *
powf(2, 10 *
time) *
201 sinf((
time * duration - s) * (2 * (
float)
M_PI) / period))) +
206 float time,
float begin,
float change,
float duration,
float amplitude,
float period)
214 if ((
time /= duration) == 1.0f) {
215 return begin + change;
219 period = duration * 0.3f;
221 if (!amplitude || amplitude <
fabsf(change)) {
223 #ifdef USE_ELASTIC_BLEND
232 return (f * (amplitude *
powf(2, 10 *
time) *
233 sinf((
time * duration - s) * (2 * (
float)
M_PI) / period))) +
238 float time,
float begin,
float change,
float duration,
float amplitude,
float period)
246 if ((
time /= duration / 2) == 2.0f) {
247 return begin + change;
251 period = duration * (0.3f * 1.5f);
253 if (!amplitude || amplitude <
fabsf(change)) {
255 #ifdef USE_ELASTIC_BLEND
266 return (f * (amplitude *
powf(2, 10 *
time) *
267 sinf((
time * duration - s) * (2 * (
float)
M_PI) / period))) +
273 return (f * (amplitude *
powf(2, 10 *
time) *
274 sinf((
time * duration - s) * (2 * (
float)
M_PI) / period))) +
279 static const float pow_scale = 1.0f / (1.0f - 0.0009765625f);
299 float duration_half = duration / 2.0f;
300 float change_half = change / 2.0f;
301 if (
time <= duration_half) {
305 time - duration_half, begin + change_half, change_half, duration_half);
310 return change *
time / duration + begin;
316 return change *
time *
time + begin;
322 return -change *
time * (
time - 2) + begin;
327 if ((
time /= duration / 2) < 1.0f) {
328 return change / 2 *
time *
time + begin;
331 return -change / 2 * (
time * (
time - 2) - 1) + begin;
348 if ((
time /= duration / 2) < 1.0f) {
367 if ((
time /= duration / 2) < 1.0f) {
376 return -change *
cosf(
time / duration * (
float)
M_PI_2) + change + begin;
386 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)