Remove unnecessary uses of System.Drawing primitives.

This commit is contained in:
Paul Chote
2018-12-30 15:41:53 +00:00
parent 00496e2ec2
commit 0b641c20df
4 changed files with 13 additions and 20 deletions

View File

@@ -23,13 +23,8 @@ namespace OpenRA
public readonly float X, Y;
public float2(float x, float y) { X = x; Y = y; }
public float2(PointF p) { X = p.X; Y = p.Y; }
public float2(Point p) { X = p.X; Y = p.Y; }
public float2(Size p) { X = p.Width; Y = p.Height; }
public float2(SizeF p) { X = p.Width; Y = p.Height; }
public PointF ToPointF() { return new PointF(X, Y); }
public SizeF ToSizeF() { return new SizeF(X, Y); }
public float2(int2 p) { X = p.X; Y = p.Y; }
public static implicit operator float2(int2 src) { return new float2(src.X, src.Y); }