bullet test

This commit is contained in:
Chris Forbes
2009-10-18 22:56:34 +13:00
parent 4aea82712f
commit 46d52d077c
4 changed files with 38 additions and 4 deletions

View File

@@ -23,6 +23,7 @@ namespace OpenRa
public int2 Sign() { return new int2(Math.Sign(X), Math.Sign(Y)); }
public int2 Abs() { return new int2( Math.Abs( X ), Math.Abs( Y ) ); }
public int Length { get { return (int)Math.Sqrt(X * X + Y * Y); } }
public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode(); }
public override bool Equals(object obj)