blob: 967f8733b72d5b115d7c98122700e70c6861afc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (c) 2021 Bruyère Jean-Philippe jp_bruyere@hotmail.com
//
// This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
using System;
namespace Drawing2D
{
public enum RegionOverlap {
In,
Out,
Part,
}
public interface IRegion : IDisposable, IEquatable<IRegion>
{
bool IsEmpty { get; }
int NumRectangles { get; }
Rectangle GetRectangle (int nth);
void UnionRectangle (Rectangle r);
bool OverlapOut (Rectangle r);
RegionOverlap Contains (Rectangle rectangle);
void Reset ();
}
}
|