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