CYD-UI
A C++ library for building native graphic user interfaces
Loading...
Searching...
No Matches
easing_functions.cppm
Go to the documentation of this file.
1//
2// Created by castle on 2/21/25.
3//
4
5export module cydui.easing_functions;
6
7import std;
8
9export namespace cydui {
10 using float_type = float;
11}
12
13export namespace cydui::easing {
14 using function_type = std::function<float_type(const float_type&)>;
15
16 constexpr float_type linear(const float_type& t) { return t; }
17}
constexpr float_type linear(const float_type &t)
std::function< float_type(const float_type &)> function_type