示例#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));
 }
 /// <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));
 }