Introduce WVec.Yaw and WAngle.Facing.

This commit is contained in:
Paul Chote
2016-01-15 18:26:06 +00:00
parent addbe6d564
commit 46bf58b520
2 changed files with 15 additions and 1 deletions

View File

@@ -41,6 +41,8 @@ namespace OpenRA
public bool Equals(WAngle other) { return other == this; }
public override bool Equals(object obj) { return obj is WAngle && Equals((WAngle)obj); }
public int Facing { get { return Angle / 4; } }
public int Sin() { return new WAngle(Angle - 256).Cos(); }
public int Cos()