C# Класс Sharpex2D.Math.Rectangle

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

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

Метод Описание
Contains ( Rectangle value ) : bool

Determines whether this instance contains the specified rectangle.

Contains ( Vector2 vector ) : bool

Determines whether this instance contains the specified vector.

Intersect ( Rectangle rectangle ) : Rectangle

Intersects the specified rectangle.

Intersects ( Rectangle rectangle ) : bool

Intersectses the specified rectangle.

Rectangle ( Vector2 a, Vector2 b ) : System

Initializes a new instance of the Rectangle struct.

Rectangle ( float x, float y, float width, float height ) : System

Initializes a new instance of the Rectangle struct.

ToString ( ) : string

Converts the Rectangle to a string.

operator ( ) : Rectangle

Implements the operator *.

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

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

Determines whether this instance contains the specified rectangle.
public Contains ( Rectangle value ) : bool
value Rectangle The value.
Результат bool

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

Determines whether this instance contains the specified vector.
public Contains ( Vector2 vector ) : bool
vector Vector2 The vector.
Результат bool

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

Intersects the specified rectangle.
public Intersect ( Rectangle rectangle ) : Rectangle
rectangle Rectangle The rectangle.
Результат Rectangle

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

Intersectses the specified rectangle.
public Intersects ( Rectangle rectangle ) : bool
rectangle Rectangle The rectangle.
Результат bool

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

Initializes a new instance of the Rectangle struct.
public Rectangle ( Vector2 a, Vector2 b ) : System
a Vector2 The first vector.
b Vector2 The second vector.
Результат System

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

Initializes a new instance of the Rectangle struct.
public Rectangle ( float x, float y, float width, float height ) : System
x float The x.
y float The y.
width float The width.
height float The height.
Результат System

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

Converts the Rectangle to a string.
public ToString ( ) : string
Результат string

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

Implements the operator *.
public static operator ( ) : Rectangle
Результат Rectangle