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

@@ -78,16 +78,6 @@ namespace OpenRA
return val;
}
public static bool Contains(this Rectangle r, int2 p)
{
return r.Contains(p.ToPoint());
}
public static bool Contains(this RectangleF r, int2 p)
{
return r.Contains(p.ToPointF());
}
static int WindingDirectionTest(int2 v0, int2 v1, int2 p)
{
return (v1.X - v0.X) * (p.Y - v0.Y) - (p.X - v0.X) * (v1.Y - v0.Y);