diff options
Diffstat (limited to 'marching/Assets/Scripts/Utils/MathUtils.cs')
-rw-r--r-- | marching/Assets/Scripts/Utils/MathUtils.cs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/marching/Assets/Scripts/Utils/MathUtils.cs b/marching/Assets/Scripts/Utils/MathUtils.cs deleted file mode 100644 index c997495..0000000 --- a/marching/Assets/Scripts/Utils/MathUtils.cs +++ /dev/null @@ -1,25 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public static class MathUtils -{ - - public static Vector2 Abs(Vector2 v) - { - return new Vector2(Mathf.Abs(v.x), Mathf.Abs(v.y)); - } - - public static Vector2 Max(Vector2 src, float v) - { - return new Vector2(Mathf.Max(src.x, v), Mathf.Max(src.y, v)); - } - - public static void Swap(ref float f1, ref float f2) - { - float t = f1; - f1 = f2; - f2 = t; - } - -}
\ No newline at end of file |