/// <summary>
 /// Test for a collision between this and another BoundingRectangle
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool CollidesWith(BoundingRectangle other)
 {
     return(CollisionHelper.Collides(this, other));
 }
Exemple #2
0
 /// <summary>
 /// Tests for collision between this rectangle and a circle
 /// </summary>
 /// <param name="other">The circle</param>
 /// <returns>True if we have a collision false otherwise</returns>
 public bool CollidesWith(BoundingCircle other)
 {
     return(CollisionHelper.Collides(other, this));
 }