diff options
Diffstat (limited to 'marching/Assets/Scripts/Utils/Vector4Extension.cs')
-rw-r--r-- | marching/Assets/Scripts/Utils/Vector4Extension.cs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/marching/Assets/Scripts/Utils/Vector4Extension.cs b/marching/Assets/Scripts/Utils/Vector4Extension.cs deleted file mode 100644 index e4b9b35..0000000 --- a/marching/Assets/Scripts/Utils/Vector4Extension.cs +++ /dev/null @@ -1,34 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using Unity.VisualScripting; -using UnityEditor; -using UnityEngine; - -public static class Vector4Extension -{ - - public static Vector2 xy(this Vector4 src) - { - Vector2 xy = new Vector2(); - xy.x = src.x; - xy.y = src.y; - return xy; - } - - public static Vector2 zw(this Vector4 src) - { - Vector2 zw = new Vector2(); - zw.x = src.z; - zw.y = src.w; - return zw; - } - - public static Vector2 ToVector2(this Vector4 src) - { - Vector2 xy = new Vector2(); - xy.x = src.x; - xy.y = src.y; - return xy; - } - -} |