C# Class No.UI.Rectangle

Represents a rectangle within a Cartesian coordinate space.
ファイルを表示 Open project: hexafluoride/no Class Usage Examples

Public Methods

Method Description
Contains ( Point point ) : bool
Intersects ( Rectangle rect ) : bool
Rectangle ( Point location, Size size ) : System
Rectangle ( Point location, int width, int height ) : System
Rectangle ( int x, int y, Size size ) : System
Rectangle ( int x, int y, int width, int height ) : System
Test ( ) : void

Private Methods

Method Description
IntersectCheck ( Rectangle first, Rectangle second ) : bool

Method Details

Contains() public method

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

Intersects() public method

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

Rectangle() public method

public Rectangle ( Point location, Size size ) : System
location Point
size Size
return System

Rectangle() public method

public Rectangle ( Point location, int width, int height ) : System
location Point
width int
height int
return System

Rectangle() public method

public Rectangle ( int x, int y, Size size ) : System
x int
y int
size Size
return System

Rectangle() public method

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

Test() public static method

public static Test ( ) : void
return void