added moving average to contrails to smooth them when aircraft are circling

This commit is contained in:
Sascha Biedermann
2013-03-19 18:41:36 +01:00
parent 78f961f653
commit 021e1116b8
2 changed files with 8 additions and 4 deletions

View File

@@ -29,6 +29,8 @@ namespace OpenRA
public static explicit operator PVecInt(PPos a) { return new PVecInt(a.X, a.Y); }
public static explicit operator PVecFloat(PPos a) { return new PVecFloat(a.X, a.Y); }
public static PPos operator /(PPos a, int b) { return new PPos(a.X / b , a.Y / b); }
public static PPos operator +(PPos a, PPos b) { return new PPos(a.X + b.X, a.Y + b.Y); }
public static PPos operator +(PPos a, PVecInt b) { return new PPos(a.X + b.X, a.Y + b.Y); }
public static PVecInt operator -(PPos a, PPos b) { return new PVecInt(a.X - b.X, a.Y - b.Y); }
public static PPos operator -(PPos a, PVecInt b) { return new PPos(a.X - b.X, a.Y - b.Y); }