aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Rectangle.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2017-01-03 13:20:01 +0100
committerjpbruyere <jp.bruyere@hotmail.com>2017-01-03 13:20:01 +0100
commit96698e1d3a00679932bf3b0c4a30f9d91250eea0 (patch)
tree1a00f60173d3106a006efd568e46b4e86215427c /src/Rectangle.cs
parent261107dbdf0d7ee4571c6c70788c1760e32ba4b1 (diff)
* Tests.csproj:
update to opentk-2.0 * Enums.cs, Rectangle.cs, Rectangles.cs: Code clean * TemplatedGroup.cs: remove logicalParent in items loading
Diffstat (limited to 'src/Rectangle.cs')
-rw-r--r--src/Rectangle.cs29
1 files changed, 1 insertions, 28 deletions
diff --git a/src/Rectangle.cs b/src/Rectangle.cs
index 3ceb396e..cc1aa56f 100644
--- a/src/Rectangle.cs
+++ b/src/Rectangle.cs
@@ -201,34 +201,7 @@ namespace Crow
{
return r1.TopLeft == r2.TopLeft && r1.Size == r2.Size ? false : true;
}
- #endregion
-
- public RectanglesRelations test(Rectangle r)
- {
- if (r == this)
- return RectanglesRelations.Equal;
-
- int nbrPtIncluded = 0;
-
- if (this.ContainsOrIsEqual(r.TopLeft))
- nbrPtIncluded++;
- if (this.ContainsOrIsEqual(r.TopRight))
- nbrPtIncluded++;
- if (this.ContainsOrIsEqual(r.BottomLeft))
- nbrPtIncluded++;
- if (this.ContainsOrIsEqual(r.BottomRight))
- nbrPtIncluded++;
-
- switch (nbrPtIncluded)
- {
- case 0:
- return RectanglesRelations.NoRelation;
- case 4:
- return RectanglesRelations.Contains;
- default:
- return RectanglesRelations.Intersect;
- }
- }
+ #endregion
public static readonly Rectangle Zero = new Rectangle(0, 0, 0, 0);
public static Rectangle Empty