2
0
Daniele Bartolini 10 жил өмнө
parent
commit
ff7d188331

+ 2 - 2
tools/core/math/Vector2.cs

@@ -9,6 +9,8 @@ namespace Crown
 {
 	public struct Vector2
 	{
+		public float x, y;
+
 		public Vector2(float x, float y)
 		{
 			this.x = x;
@@ -34,7 +36,5 @@ namespace Crown
 		{
 			return a * k;
 		}
-
-		public float x, y;
 	}
 }

+ 2 - 2
tools/core/math/Vector3.cs

@@ -9,6 +9,8 @@ namespace Crown
 {
 	public struct Vector3
 	{
+		public float x, y, z;
+
 		public Vector3(float x, float y, float z)
 		{
 			this.x = x;
@@ -35,7 +37,5 @@ namespace Crown
 		{
 			return a * k;
 		}
-
-		public float x, y, z;
 	}
 }