SpriteSpriteIntersectsRectangle Method |
Check to see if the specified rectangle overlaps with the sprite.
Namespace:
SpriteLibrary
Assembly:
SpriteLibrary (in SpriteLibrary.dll) Version: 1.0.0.5 (1.0.0.5)
Syntaxpublic bool SpriteIntersectsRectangle(
Rectangle target
)
Parameters
- target
- Type: System.DrawingRectangle
The rectangle we are looking to see if we hit
Return Value
Type:
BooleanTrue if the rectangle overlaps the sprite rectabgle
See Also