C# Класс Krypton.Common.BoundingRect

Much like Rectangle, but stored as two Vector2s
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Max Vector2
Min Vector2

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

Метод Описание
BoundingRect ( Vector2 min, Vector2 max ) : System
BoundingRect ( float x, float y, float width, float height ) : System
Contains ( BoundingRect rect ) : bool
Contains ( Vector2 vector ) : bool
Contains ( float x, float y ) : bool
Contains ( BoundingRect &rect, bool &result ) : void
Contains ( Vector2 &rect, bool &result ) : void
Equals ( BoundingRect other ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Intersect ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
Intersect ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
Intersects ( BoundingRect rect ) : bool
Intersects ( BoundingRect &rect, bool &result ) : void
Union ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
Union ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
operator ( ) : bool

Приватные методы

Метод Описание
BoundingRect ( ) : System

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

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

public BoundingRect ( Vector2 min, Vector2 max ) : System
min Vector2
max Vector2
Результат System

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

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

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

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

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

public Contains ( Vector2 vector ) : bool
vector Vector2
Результат bool

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

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

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

public Contains ( BoundingRect &rect, bool &result ) : void
rect BoundingRect
result bool
Результат void

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

public Contains ( Vector2 &rect, bool &result ) : void
rect Vector2
result bool
Результат void

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

public Equals ( BoundingRect other ) : bool
other BoundingRect
Результат bool

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

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

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

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

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

public static Intersect ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
rect1 BoundingRect
rect2 BoundingRect
Результат BoundingRect

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

public static Intersect ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
rect1 BoundingRect
rect2 BoundingRect
result BoundingRect
Результат void

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

public Intersects ( BoundingRect rect ) : bool
rect BoundingRect
Результат bool

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

public Intersects ( BoundingRect &rect, bool &result ) : void
rect BoundingRect
result bool
Результат void

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

public static Union ( BoundingRect rect1, BoundingRect rect2 ) : BoundingRect
rect1 BoundingRect
rect2 BoundingRect
Результат BoundingRect

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

public static Union ( BoundingRect &rect1, BoundingRect &rect2, BoundingRect &result ) : void
rect1 BoundingRect
rect2 BoundingRect
result BoundingRect
Результат void

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

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

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

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

public Vector2 Max
Результат Vector2

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

public Vector2 Min
Результат Vector2