C# Class Microsoft.Xna.Framework.RectangleExtension

A set of helpful methods for working with rectangles.
ファイルを表示 Open project: valryon/super-caissiere

Public Methods

Method Description
GetBottomCenter ( this rect ) : Vector2

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

GetIntersectionDepth ( this rectA, Rectangle rectB, Vector2 &depth ) : bool

Calculates the signed depth of intersection between two rectangles.

Method Details

GetBottomCenter() public static method

Gets the position of the center of the bottom edge of the rectangle.
public static GetBottomCenter ( this rect ) : Vector2
rect this
return Vector2

GetIntersectionDepth() public static method

Calculates the signed depth of intersection between two rectangles.
public static GetIntersectionDepth ( this rectA, Rectangle rectB, Vector2 &depth ) : bool
rectA this
rectB Rectangle
depth Vector2
return bool