C# Class MegaMan.Common.Geometry.Rectangle

Show file Open project: Tesserex/C--MegaMan-Engine Class Usage Examples

Public Properties

Property Type Description
Empty Rectangle
Height int
Width int
X int
Y int

Public Methods

Method Description
Contains ( Point pt ) : bool
Contains ( Rectangle rect ) : bool
Contains ( int x, int y ) : bool
Equals ( object obj ) : bool
GetHashCode ( ) : int
Intersect ( Rectangle a, Rectangle b ) : Rectangle
Intersect ( Rectangle rect ) : void
Rectangle ( int x, int y, int width, int height ) : System
Union ( Rectangle a, Rectangle b ) : Rectangle
operator ( ) : bool

Method Details

Contains() public method

public Contains ( Point pt ) : bool
pt Point
return bool

Contains() public method

public Contains ( Rectangle rect ) : bool
rect Rectangle
return bool

Contains() public method

public Contains ( int x, int y ) : bool
x int
y int
return bool

Equals() public method

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

GetHashCode() public method

public GetHashCode ( ) : int
return int

Intersect() public static method

public static Intersect ( Rectangle a, Rectangle b ) : Rectangle
a Rectangle
b Rectangle
return Rectangle

Intersect() public method

public Intersect ( Rectangle rect ) : void
rect Rectangle
return void

Rectangle() public method

public Rectangle ( int x, int y, int width, int height ) : System
x int
y int
width int
height int
return System

Union() public static method

public static Union ( Rectangle a, Rectangle b ) : Rectangle
a Rectangle
b Rectangle
return Rectangle

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Empty public static property

public static Rectangle,MegaMan.Common.Geometry Empty
return Rectangle

Height public property

public int Height
return int

Width public property

public int Width
return int

X public property

public int X
return int

Y public property

public int Y
return int