|
@@ -3,6 +3,7 @@
|
|
|
* License: https://github.com/taylor001/crown/blob/master/LICENSE
|
|
* License: https://github.com/taylor001/crown/blob/master/LICENSE
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
|
|
+using System.Collections;
|
|
|
using System;
|
|
using System;
|
|
|
|
|
|
|
|
namespace Crown
|
|
namespace Crown
|
|
@@ -18,6 +19,13 @@ namespace Crown
|
|
|
this.z = z;
|
|
this.z = z;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ public Vector3(ArrayList arr)
|
|
|
|
|
+ {
|
|
|
|
|
+ this.x = (float)(double)arr[0];
|
|
|
|
|
+ this.y = (float)(double)arr[1];
|
|
|
|
|
+ this.z = (float)(double)arr[2];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public static Vector3 operator+(Vector3 a, Vector3 b)
|
|
public static Vector3 operator+(Vector3 a, Vector3 b)
|
|
|
{
|
|
{
|
|
|
return new Vector3(a.x + b.x, a.y + b.y, a.z + b.z);
|
|
return new Vector3(a.x + b.x, a.y + b.y, a.z + b.z);
|