C# Класс MegaMan.Common.Geometry.Rectangle

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Empty Rectangle
Height int
Width int
X int
Y int

Открытые методы

Метод Описание
Contains ( Point pt ) : bool
Contains ( Rectangle rect ) : bool
Contains ( int x, int y ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Intersect ( Rectangle a, Rectangle b ) : Rectangle
Intersect ( Rectangle rect ) : void
Rectangle ( int x, int y, int width, int height ) : System
Union ( Rectangle a, Rectangle b ) : Rectangle
operator ( ) : bool

Описание методов

Contains() публичный Метод

public Contains ( Point pt ) : bool
pt Point
Результат bool

Contains() публичный Метод

public Contains ( Rectangle rect ) : bool
rect Rectangle
Результат bool

Contains() публичный Метод

public Contains ( int x, int y ) : bool
x int
y int
Результат bool

Equals() публичный Метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Intersect() публичный статический Метод

public static Intersect ( Rectangle a, Rectangle b ) : Rectangle
a Rectangle
b Rectangle
Результат Rectangle

Intersect() публичный Метод

public Intersect ( Rectangle rect ) : void
rect Rectangle
Результат void

Rectangle() публичный Метод

public Rectangle ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
Результат System

Union() публичный статический Метод

public static Union ( Rectangle a, Rectangle b ) : Rectangle
a Rectangle
b Rectangle
Результат Rectangle

operator() публичный статический Метод

public static operator ( ) : bool
Результат bool

Описание свойств

Empty публичное статическое свойство

public static Rectangle,MegaMan.Common.Geometry Empty
Результат Rectangle

Height публичное свойство

public int Height
Результат int

Width публичное свойство

public int Width
Результат int

X публичное свойство

public int X
Результат int

Y публичное свойство

public int Y
Результат int