From 23beeb477b487ea7701d69ef51110f2dcf63a6aa Mon Sep 17 00:00:00 2001 From: chrisf Date: Sat, 14 Jul 2007 07:00:22 +0000 Subject: [PATCH] git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1225 993157c7-ee19-0410-b2c4-bb4e9862e678 --- OpenRa.Game/float2.cs | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/OpenRa.Game/float2.cs b/OpenRa.Game/float2.cs index ffa9b8921d..4dc5c3496b 100644 --- a/OpenRa.Game/float2.cs +++ b/OpenRa.Game/float2.cs @@ -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) {