summaryrefslogtreecommitdiff
path: root/WorldlineKeepers/Assets/Scripts/Utils/Vector3Extension.cs
diff options
context:
space:
mode:
Diffstat (limited to 'WorldlineKeepers/Assets/Scripts/Utils/Vector3Extension.cs')
-rw-r--r--WorldlineKeepers/Assets/Scripts/Utils/Vector3Extension.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/WorldlineKeepers/Assets/Scripts/Utils/Vector3Extension.cs b/WorldlineKeepers/Assets/Scripts/Utils/Vector3Extension.cs
new file mode 100644
index 0000000..5afe941
--- /dev/null
+++ b/WorldlineKeepers/Assets/Scripts/Utils/Vector3Extension.cs
@@ -0,0 +1,26 @@
+using System.Collections;
+using System.Collections.Generic;
+using Unity.VisualScripting;
+using UnityEditor;
+using UnityEngine;
+
+public static class Vector3Extension
+{
+
+ public static Vector2 xy(this Vector3 src)
+ {
+ Vector2 xy = new Vector2();
+ xy.x = src.x;
+ xy.y = src.y;
+ return xy;
+ }
+
+ public static Vector2 ToVector2(this Vector3 src)
+ {
+ Vector2 xy = new Vector2();
+ xy.x = src.x;
+ xy.y = src.y;
+ return xy;
+ }
+
+}