From 22891bf59032ba88262824255a706d652031384b Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Mar 2022 14:07:40 +0800 Subject: * move folder --- Assets/Scripts/Utils/VectorUtility.cs | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Assets/Scripts/Utils/VectorUtility.cs (limited to 'Assets/Scripts/Utils/VectorUtility.cs') diff --git a/Assets/Scripts/Utils/VectorUtility.cs b/Assets/Scripts/Utils/VectorUtility.cs deleted file mode 100644 index b0e857e7..00000000 --- a/Assets/Scripts/Utils/VectorUtility.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Collections; -using System.Collections.Generic; -using UnityEngine; - -public static class VectorExtend -{ - - public static Vector4 ToVector4(ref this Vector3 v3, float w = 1) - { - Vector4 v4 = new Vector4(v3.x, v3.y, v3.z, 1); - return v4; - } - - public static Vector3 ToVector3(ref this Vector4 v4) - { - Vector3 v3 = new Vector3(v4.x, v4.y, v4.z); - return v3; - } - - public static Vector2 ToVector2(ref this Vector3 v3) - { - Vector2 v2 = new Vector2(v3.x, v3.y); - return v2; - } - -} - -public class VectorUtility -{ - - -} \ No newline at end of file -- cgit v1.1-26-g67d0