Upload from upload_mods.ps1

This commit is contained in:
Nathaniel Cosford
2025-06-04 16:13:32 +09:30
commit 7345f42201
470 changed files with 51966 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
namespace CameraShake
{
public static class Power
{
public static float Evaluate(float value, Degree degree)
{
switch (degree)
{
case Degree.Linear:
return value;
case Degree.Quadratic:
return value * value;
case Degree.Cubic:
return value * value * value;
case Degree.Quadric:
return value * value * value * value;
default:
return value;
}
}
}
public enum Degree { Linear, Quadratic, Cubic, Quadric }
}