git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1225 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-07-14 07:00:22 +00:00
parent 8e1e815f8b
commit 23beeb477b

View File

@@ -12,40 +12,13 @@ namespace OpenRa.Game
{
public float X, Y;
public float2(float x, float y)
{
X = x;
Y = 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 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 static float2 operator +(float2 a, float2 b)
{