Daniele Bartolini 9 лет назад
Родитель
Сommit
5b22b46cb9

+ 8 - 0
tools/core/math/Quaternion.cs

@@ -20,6 +20,14 @@ namespace Crown
 			this.w = w;
 		}
 
+		public Quaternion(double x, double y, double z, double w)
+		{
+			this.x = (float)x;
+			this.y = (float)y;
+			this.z = (float)z;
+			this.w = (float)w;
+		}
+
 		public Quaternion(ArrayList arr)
 		{
 			this.x = (float)(double)arr[0];

+ 6 - 0
tools/core/math/Vector2.cs

@@ -18,6 +18,12 @@ namespace Crown
 			this.y = y;
 		}
 
+		public Vector2(double x, double y)
+		{
+			this.x = (float)x;
+			this.y = (float)y;
+		}
+
 		public Vector2(ArrayList arr)
 		{
 			this.x = (float)(double)arr[0];

+ 7 - 0
tools/core/math/Vector3.cs

@@ -19,6 +19,13 @@ namespace Crown
 			this.z = z;
 		}
 
+		public Vector3(double x, double y, double z)
+		{
+			this.x = (float)x;
+			this.y = (float)y;
+			this.z = (float)z;
+		}
+
 		public Vector3(ArrayList arr)
 		{
 			this.x = (float)(double)arr[0];

+ 8 - 0
tools/core/math/Vector4.cs

@@ -20,6 +20,14 @@ namespace Crown
 			this.w = w;
 		}
 
+		public Vector4(double x, double y, double z, double w)
+		{
+			this.x = (float)x;
+			this.y = (float)y;
+			this.z = (float)z;
+			this.w = (float)w;
+		}
+
 		public Vector4(ArrayList arr)
 		{
 			this.x = (float)(double)arr[0];