C# Class MonoGameUi.ExtensionMethods

Stellt Hilfsmethoden als Erweiterungsmethoden bereit.
Afficher le fichier Open project: OctoAwesome/monogameui

Méthodes publiques

Méthode Description
Intersection ( this r1, Rectangle r2 ) : Rectangle

Ermittelt die Schnittfläche zweiter Rechtecke.

Intersects ( this rectangle, Point point ) : bool

Gibt an ob der angegebene Punkt innerhalb des Rectangles liegt oder nicht.

Transform ( this rectangle, Matrix transform ) : Rectangle

Transformiert ein Rechteck mit der angegebenen Transformationsmatrix.

Method Details

Intersection() public static méthode

Ermittelt die Schnittfläche zweiter Rechtecke.
public static Intersection ( this r1, Rectangle r2 ) : Rectangle
r1 this Rechteck 1
r2 Microsoft.Xna.Framework.Rectangle Rechteck 2
Résultat Microsoft.Xna.Framework.Rectangle

Intersects() public static méthode

Gibt an ob der angegebene Punkt innerhalb des Rectangles liegt oder nicht.
public static Intersects ( this rectangle, Point point ) : bool
rectangle this Zu untersuchendes Rechteck
point Point Punkt
Résultat bool

Transform() public static méthode

Transformiert ein Rechteck mit der angegebenen Transformationsmatrix.
public static Transform ( this rectangle, Matrix transform ) : Rectangle
rectangle this Rechteck
transform Matrix Transformationsmatrix
Résultat Microsoft.Xna.Framework.Rectangle