C# Class PrinceGame.RectangleExtensions

Afficher le fichier Open project: salvadorc17/Prince-Monogame Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
RectangleExtensions ( ) : System

Method Details

GetBottomCenter() public static méthode

Gets the position of the center of the bottom edge of the rectangle.
public static GetBottomCenter ( Rectangle rect ) : Vector2
rect Microsoft.Xna.Framework.Rectangle
Résultat Vector2

GetIntersectionDepth() public static méthode

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
Résultat Vector2