C# Class GameMath.RectangleIntersection

Show file Open project: npruehs/game-math

Public Methods

Method Description
Intersects ( this rectangle, CircleF circle ) : bool

Checks whether the specified rectangle intersects the passed circle.

Intersects ( this first, RectangleF second ) : bool

Checks whether the two specified rectangles at least partially intersect each other.

Intersects ( this first, RectangleI second ) : bool

Checks whether the two specified rectangles at least partially intersect each other.

Method Details

Intersects() public static method

Checks whether the specified rectangle intersects the passed circle.
public static Intersects ( this rectangle, CircleF circle ) : bool
rectangle this /// Rectangle to check. ///
circle CircleF /// Circle to check. ///
return bool

Intersects() public static method

Checks whether the two specified rectangles at least partially intersect each other.
public static Intersects ( this first, RectangleF second ) : bool
first this /// First rectangle to check. ///
second RectangleF /// Second rectangle to check. ///
return bool

Intersects() public static method

Checks whether the two specified rectangles at least partially intersect each other.
public static Intersects ( this first, RectangleI second ) : bool
first this /// First rectangle to check. ///
second RectangleI /// Second rectangle to check. ///
return bool