C# Class TiaraFramework.Component.ColliDetection

Show file Open project: TiaraGames/TiaraFramework

Public Methods

Method Description
RectAndRect ( Rectangle r1, Rectangle r2 ) : bool
RectAndRound ( Rectangle re, Round ro ) : bool
RoundAndRound ( Round r1, Round r2 ) : bool
isPointInRect ( Point p, Rectangle r ) : bool
isPointInRound ( Point p, Round r ) : bool
isRectInRect ( Rectangle i, Rectangle o ) : bool
isRoundInRound ( Round ri, Round ro ) : bool

Method Details

RectAndRect() public static method

public static RectAndRect ( Rectangle r1, Rectangle r2 ) : bool
r1 Microsoft.Xna.Framework.Rectangle
r2 Microsoft.Xna.Framework.Rectangle
return bool

RectAndRound() public static method

public static RectAndRound ( Rectangle re, Round ro ) : bool
re Microsoft.Xna.Framework.Rectangle
ro Round
return bool

RoundAndRound() public static method

public static RoundAndRound ( Round r1, Round r2 ) : bool
r1 Round
r2 Round
return bool

isPointInRect() public static method

public static isPointInRect ( Point p, Rectangle r ) : bool
p Point
r Microsoft.Xna.Framework.Rectangle
return bool

isPointInRound() public static method

public static isPointInRound ( Point p, Round r ) : bool
p Point
r Round
return bool

isRectInRect() public static method

public static isRectInRect ( Rectangle i, Rectangle o ) : bool
i Microsoft.Xna.Framework.Rectangle
o Microsoft.Xna.Framework.Rectangle
return bool

isRoundInRound() public static method

public static isRoundInRound ( Round ri, Round ro ) : bool
ri Round
ro Round
return bool