feat: make all functions inlinable

This commit is contained in:
2026-02-15 12:01:25 +01:00
parent feb9f76053
commit 303028dc10
11 changed files with 33 additions and 0 deletions
+3
View File
@@ -4,6 +4,7 @@ const C4: f32 = (2.0 * PI) / 3.0;
const C5: f32 = (2.0 * PI) / 4.5;
/// <https://easings.net/#easeInElastic>
#[inline]
pub fn elastic_in(t: f32) -> f32 {
if t <= 0.0 {
0.0
@@ -15,6 +16,7 @@ pub fn elastic_in(t: f32) -> f32 {
}
/// <https://easings.net/#easeOutElastic>
#[inline]
pub fn elastic_out(t: f32) -> f32 {
if t <= 0.0 {
0.0
@@ -26,6 +28,7 @@ pub fn elastic_out(t: f32) -> f32 {
}
/// <https://easings.net/#easeInOutElastic>
#[inline]
pub fn elastic_in_out(t: f32) -> f32 {
if t <= 0.0 {
0.0