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