Exemplo n.º 1
0
 /// <summary>
 /// Tests for a collision between this and a BoundingRectangle
 /// </summary>
 /// <param name="other">The BoundingRectangle</param>
 /// <returns>True for collision, false otherwise</returns>
 public bool CollidesWith(BoundingRectangle other)
 {
     return(CollisionHelper.Collides(this, other));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Determines if this BoundingPoint collides with a BoundingCircle
 /// </summary>
 /// <param name="r">the BoundingRectangle</param>
 /// <returns>true on collision, false otherwise</returns>
 public bool CollidesWith(BoundingRectangle r)
 {
     return(CollisionHelper.Collides(r, this));
 }