C# Class Category5.Rectangle2D

Show file Open project: AnyKey/tojam4 Class Usage Examples

Public Properties

Property Type Description
Height float
Width float
X float
Y float

Public Methods

Method Description
Copy ( ) : Rectangle2D
Intersects ( Rectangle2D rect ) : bool
IsWithin ( Rectangle2D InnerRect ) : bool
Rectangle2D ( float x, float y, float width, float height ) : System
ToString ( ) : string
getScaled ( float factor ) : Rectangle2D
getScaledDrawingRect ( float factor ) : Rectangle

Method Details

Copy() public method

public Copy ( ) : Rectangle2D
return Rectangle2D

Intersects() public method

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

IsWithin() public method

public IsWithin ( Rectangle2D InnerRect ) : bool
InnerRect Rectangle2D
return bool

Rectangle2D() public method

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

ToString() public method

public ToString ( ) : string
return string

getScaled() public method

public getScaled ( float factor ) : Rectangle2D
factor float
return Rectangle2D

getScaledDrawingRect() public method

public getScaledDrawingRect ( float factor ) : Rectangle
factor float
return Microsoft.Xna.Framework.Rectangle

Property Details

Height public property

public float Height
return float

Width public property

public float Width
return float

X public property

public float X
return float

Y public property

public float Y
return float