Skip to content

Commit

Permalink
Animation.h:
Browse files Browse the repository at this point in the history
* Added function ease_lin.
  • Loading branch information
razterizer committed Dec 2, 2024
1 parent 1764285 commit 84a11c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Animation.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@

namespace easings
{
std::function<float(float)> ease_lin = [](float t)
{
return t;
};

std::function<float(float)> ease_in_sine = [](float t)
{
return 1.f - std::cos((t * math::c_pi) * 0.5f);
Expand Down

0 comments on commit 84a11c6

Please sign in to comment.