C# Class FootballSimulation.RectangleFExtensions

Provides extension methods for the RectangleF structure.
Afficher le fichier Open project: PurdueSIGAI/Soccer

Méthodes publiques

Méthode Description
Contains ( this rectangle, System.Numerics.Vector2 vector ) : bool

Determines if the specified point is contained within this RectangleF structure.

IntersectsOrBorders ( this rectangle, RectangleF other ) : bool

Determines if the specified rectangle either intersects or borders this RectangleF structure.

Method Details

Contains() public static méthode

Determines if the specified point is contained within this RectangleF structure.
public static Contains ( this rectangle, System.Numerics.Vector2 vector ) : bool
rectangle this The to test.
vector System.Numerics.Vector2 The to test.
Résultat bool

IntersectsOrBorders() public static méthode

Determines if the specified rectangle either intersects or borders this RectangleF structure.
public static IntersectsOrBorders ( this rectangle, RectangleF other ) : bool
rectangle this The to test.
other System.Drawing.RectangleF The other to test.
Résultat bool