diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-03 13:20:01 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-01-03 13:20:01 +0100 |
| commit | 96698e1d3a00679932bf3b0c4a30f9d91250eea0 (patch) | |
| tree | 1a00f60173d3106a006efd568e46b4e86215427c /src/Rectangle.cs | |
| parent | 261107dbdf0d7ee4571c6c70788c1760e32ba4b1 (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.cs | 29 |
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 |