StyleCop
This commit is contained in:
@@ -29,7 +29,7 @@ namespace OpenRA
|
|||||||
|
|
||||||
public static int2 operator -(int2 a) { return new int2(-a.X, -a.Y); }
|
public static int2 operator -(int2 a) { return new int2(-a.X, -a.Y); }
|
||||||
|
|
||||||
public static bool operator ==(int2 me, int2 other) { return (me.X == other.X && me.Y == other.Y); }
|
public static bool operator ==(int2 me, int2 other) { return me.X == other.X && me.Y == other.Y; }
|
||||||
public static bool operator !=(int2 me, int2 other) { return !(me == other); }
|
public static bool operator !=(int2 me, int2 other) { return !(me == other); }
|
||||||
|
|
||||||
public int2 Sign() { return new int2(Math.Sign(X), Math.Sign(Y)); }
|
public int2 Sign() { return new int2(Math.Sign(X), Math.Sign(Y)); }
|
||||||
@@ -77,6 +77,5 @@ namespace OpenRA
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static int Dot(int2 a, int2 b) { return a.X * b.X + a.Y * b.Y; }
|
public static int Dot(int2 a, int2 b) { return a.X * b.X + a.Y * b.Y; }
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user