C# Class GameEngine.Drawing.FRectangle

Rectangle Structure that uses Float values as storage rather than integers such as the ones used in the standard XNA rectangle struct. The FRectangle structure can be used to specify texture ranges in for example the ground pallette.
Datei anzeigen Open project: MichaelAquilina/Some-2D-RPG Class Usage Examples

Public Methods

Method Description
Contains ( FRectangle frectangle ) : bool
Contains ( Rectangle rectangle ) : bool
Equals ( object obj ) : bool
FRectangle ( Rectangle rectangle ) : System
FRectangle ( float x, float y, float width, float height ) : System
GetHashCode ( ) : int
Intersects ( FRectangle frectangle ) : bool
Intersects ( Rectangle rectangle ) : bool
ToRectangle ( ) : Rectangle
ToString ( ) : string
ToString ( string format ) : string
operator ( ) : FRectangle
operator ( ) : bool

Method Details

Contains() public method

public Contains ( FRectangle frectangle ) : bool
frectangle FRectangle
return bool

Contains() public method

public Contains ( Rectangle rectangle ) : bool
rectangle Microsoft.Xna.Framework.Rectangle
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

FRectangle() public method

public FRectangle ( Rectangle rectangle ) : System
rectangle Microsoft.Xna.Framework.Rectangle
return System

FRectangle() public method

public FRectangle ( float x, float y, float width, float height ) : System
x float
y float
width float
height float
return System

GetHashCode() public method

public GetHashCode ( ) : int
return int

Intersects() public method

public Intersects ( FRectangle frectangle ) : bool
frectangle FRectangle
return bool

Intersects() public method

public Intersects ( Rectangle rectangle ) : bool
rectangle Microsoft.Xna.Framework.Rectangle
return bool

ToRectangle() public method

public ToRectangle ( ) : Rectangle
return Microsoft.Xna.Framework.Rectangle

ToString() public method

public ToString ( ) : string
return string

ToString() public method

public ToString ( string format ) : string
format string
return string

operator() public static method

public static operator ( ) : FRectangle
return FRectangle

operator() public static method

public static operator ( ) : bool
return bool