Click or drag to resize

SpriteSpriteIntersectsRectangle Method

Check to see if the specified rectangle overlaps with the sprite.

Namespace:  SpriteLibrary
Assembly:  SpriteLibrary (in SpriteLibrary.dll) Version: 1.0.0.6 (1.0.0.6)
Syntax
C#
public bool SpriteIntersectsRectangle(
	Rectangle target
)

Parameters

target
Type: System.DrawingRectangle
The rectangle we are looking to see if we hit

Return Value

Type: Boolean
True if the rectangle overlaps the sprite rectabgle
See Also