C# Class FootballSimulation.RectangleFExtensions

Provides extension methods for the RectangleF structure.
Show file Open project: PurdueSIGAI/Soccer

Public Methods

Method 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 method

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.
return bool

IntersectsOrBorders() public static method

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.
return bool