C# Class Ypsilon.Core.RectangleF

Datei anzeigen Open project: ZaneDubya/YCPU Class Usage Examples

Public Methods

Method Description
Contains ( Vector2 pPoint ) : bool
Duplicate ( ) : RectangleF
IsCollision ( RectangleF r2, RectangleF r1 ) : bool
RectangleF ( ) : Microsoft.Xna.Framework
RectangleF ( float pX, float pY, float pWidth, float pHeight ) : Microsoft.Xna.Framework
ToRectangle ( ) : Rectangle
Union ( RectangleF rect1, RectangleF rect2 ) : RectangleF

Method Details

Contains() public method

public Contains ( Vector2 pPoint ) : bool
pPoint Microsoft.Xna.Framework.Vector2
return bool

Duplicate() public method

public Duplicate ( ) : RectangleF
return RectangleF

IsCollision() public static method

public static IsCollision ( RectangleF r2, RectangleF r1 ) : bool
r2 RectangleF
r1 RectangleF
return bool

RectangleF() public method

public RectangleF ( ) : Microsoft.Xna.Framework
return Microsoft.Xna.Framework

RectangleF() public method

public RectangleF ( float pX, float pY, float pWidth, float pHeight ) : Microsoft.Xna.Framework
pX float
pY float
pWidth float
pHeight float
return Microsoft.Xna.Framework

ToRectangle() public method

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

Union() public method

public Union ( RectangleF rect1, RectangleF rect2 ) : RectangleF
rect1 RectangleF
rect2 RectangleF
return RectangleF