mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-14 19:29:36 +01:00
TextEdit control & a bunch of other stuff (#3436)
This commit is contained in:
committed by
GitHub
parent
db95c6284b
commit
e34935c9e2
13
Robust.Shared.Maths/Easings.cs
Normal file
13
Robust.Shared.Maths/Easings.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -4,5 +4,6 @@
|
||||
[module: SkipLocalsInit]
|
||||
#endif
|
||||
|
||||
[assembly: InternalsVisibleTo("Robust.Client")]
|
||||
[assembly: InternalsVisibleTo("Robust.UnitTesting")]
|
||||
[assembly: InternalsVisibleTo("Content.Benchmarks")]
|
||||
|
||||
Reference in New Issue
Block a user