Remove obsolete functions from WorldRenderer.

This commit is contained in:
Paul Chote
2013-05-15 21:16:09 +12:00
parent e1290dca47
commit e382dc9b71

View File

@@ -220,16 +220,5 @@ namespace OpenRA.Graphics
} }
public float ScreenZPosition(WPos pos) { return (pos.Y + pos.Z)*Game.CellSize/1024f; } public float ScreenZPosition(WPos pos) { return (pos.Y + pos.Z)*Game.CellSize/1024f; }
public int2 ScreenPxOffset(WVec vec)
{
return new int2(Game.CellSize*vec.X/1024, Game.CellSize*(vec.Y - vec.Z)/1024);
}
public float[] ScreenOffset(WVec vec)
{
var c = Game.CellSize/1024f;
return new float[] {c*vec.X, c*vec.Y, c*vec.Z};
}
} }
} }