Exemple #1
0
 public System.Boolean Attack(Province.Vector.Vector from, Province.Vector.Vector to)
 {
     return(Request <System.Boolean>(
                "Attack",
                new NetData
     {
         { "from", from },
         { "to", to }
     }));
 }
Exemple #2
0
 public System.Boolean UpgradeBuilding(Province.Vector.Vector position, System.String name)
 {
     return(Request <System.Boolean>(
                "UpgradeBuilding",
                new NetData
     {
         { "position", position },
         { "name", name }
     }));
 }
Exemple #3
0
 public static Matrix <float> ToMatrix(this Vector v) => Matrix.Build.DenseOfArray(new float[, ] {
     { v.X }, { v.Y }
 });
Exemple #4
0
 public static Matrix <float> TransitionMatrix(this Vector a) => TransitionMatrix(a, a.Rotate90());
Exemple #5
0
 public static Matrix <float> TransitionMatrix(Vector a, Vector b) => a.ToMatrix().Append(b.ToMatrix()).Inverse();