C# Class Platformer.RectangleExtensions

A set of helpful methods for working with rectangles.
Afficher le fichier Open project: zmthy/play-dead Class Usage Examples

Méthodes publiques

Méthode Description
GetBottomCenter ( this rect ) : Vector2

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

GetIntersectionDepth ( this rectA, RectangleF rectB ) : Vector2

Calculates the signed depth of intersection between two rectangles.

Method Details

GetBottomCenter() public static méthode

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

GetIntersectionDepth() public static méthode

Calculates the signed depth of intersection between two rectangles.
public static GetIntersectionDepth ( this rectA, RectangleF rectB ) : Vector2
rectA this
rectB RectangleF
Résultat Vector2