yolobs-studio/plugins/obs-transitions/easings.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
198 B
C
Raw Normal View History

2016-05-24 19:53:01 +00:00
#pragma once
static inline float cubic_ease_in_out(float t)
{
if (t < 0.5f) {
return 4.0f * t * t * t;
} else {
float temp = (2.0f * t - 2.0f);
return (t - 1.0f) * temp * temp + 1.0f;
}
}