예제 #1
0
 /// <summary>
 /// Determines if this BoundingCircle collides with a BoundingRectangle
 /// </summary>
 /// <param name="r">the BoundingRectangle</param>
 /// <returns>true on collision, false otherwise</returns>
 public bool CollidesWith(BoundingRectangle r)
 {
     return(CollisionHelper.Collides(r, this));
 }
예제 #2
0
 /// <summary>
 /// Determines if this BoundingCircle collides with a BoundingPoint
 /// </summary>
 /// <param name="p">the bounding point</param>
 /// <returns>true on collision, false otherwise</returns>
 public bool CollidesWith(BoundingPoint p)
 {
     return(CollisionHelper.Collides(this, p));
 }
예제 #3
0
 /// <summary>
 /// Determines if this BoundingCircle collides with a BoundingCircle
 /// </summary>
 /// <param name="c">the BoundingCircle</param>
 /// <returns>true on collision, false otherwise</returns>
 public bool CollidesWith(BoundingCircle c)
 {
     return(CollisionHelper.Collides(this, c));
 }
예제 #4
0
 /// <summary>
 /// Determines if this BoundingPoint collides with another BoundingPoint
 /// </summary>
 /// <param name="o">the other bounding point</param>
 /// <returns>true on collision, false otherwise</returns>
 public bool CollidesWith(BoundingPoint o)
 {
     return(CollisionHelper.Collides(o, this));
 }