[longomatch] Add a new constructor for Area



commit 2baad9126c333bda13539c4461e2a95cdcc6caf0
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Apr 21 11:47:54 2015 +0200

    Add a new constructor for Area

 LongoMatch.Core/Common/Area.cs |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Common/Area.cs b/LongoMatch.Core/Common/Area.cs
index f21ab76..2f9f93f 100644
--- a/LongoMatch.Core/Common/Area.cs
+++ b/LongoMatch.Core/Common/Area.cs
@@ -24,6 +24,13 @@ namespace LongoMatch.Core.Common
        [JsonObject (MemberSerialization.OptIn)]
        public class Area
        {
+               public Area (double x, double y, double width, double height)
+               {
+                       Start = new Point (x, y);
+                       Width = width;
+                       Height = height;
+               }
+
                public Area (Point start, double width, double height)
                {
                        Start = start;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]