diff options
author | chai <215380520@qq.com> | 2023-05-10 18:09:12 +0800 |
---|---|---|
committer | chai <215380520@qq.com> | 2023-05-10 18:09:12 +0800 |
commit | 530881df3968089a8b07e0f9b79185b844d0cdd0 (patch) | |
tree | 6f61565923012e7e8e0c610a10928a5d39230201 /marching/Assets/Scripts/Utils/MathUtils.cs | |
parent | caeba98e0385edebb344e6dbd024c01801a75fc4 (diff) |
* raycast
Diffstat (limited to 'marching/Assets/Scripts/Utils/MathUtils.cs')
-rw-r--r-- | marching/Assets/Scripts/Utils/MathUtils.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/marching/Assets/Scripts/Utils/MathUtils.cs b/marching/Assets/Scripts/Utils/MathUtils.cs index a25f5e5..c997495 100644 --- a/marching/Assets/Scripts/Utils/MathUtils.cs +++ b/marching/Assets/Scripts/Utils/MathUtils.cs @@ -15,5 +15,11 @@ public static class MathUtils 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 |