C# Класс PrinceGame.RectangleExtensions

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

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

Метод Описание
GetBottomCenter ( Rectangle rect ) : Vector2

Gets the position of the center of the bottom edge of the rectangle.

GetIntersectionDepth ( Rectangle rectA, Rectangle rectB ) : Vector2

Calculates the signed depth of intersection between two rectangles.

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

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

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

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

Gets the position of the center of the bottom edge of the rectangle.
public static GetBottomCenter ( Rectangle rect ) : Vector2
rect Microsoft.Xna.Framework.Rectangle
Результат Vector2

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

Calculates the signed depth of intersection between two rectangles.
public static GetIntersectionDepth ( Rectangle rectA, Rectangle rectB ) : Vector2
rectA Microsoft.Xna.Framework.Rectangle
rectB Microsoft.Xna.Framework.Rectangle
Результат Vector2