mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
14 lines
263 B
C#
14 lines
263 B
C#
using System;
|
|
|
|
namespace Robust.Shared.Maths;
|
|
|
|
// Reference: https://easings.net/
|
|
|
|
internal static class Easings
|
|
{
|
|
public static float InOutQuint(float p)
|
|
{
|
|
return p < 0.5f ? (16 * p * p * p * p * p) : 1 - MathF.Pow(-2 * p + 2, 5) / 2;
|
|
}
|
|
}
|