Exemple #1
0
 public static bool CollidesWith(this BoundingRectangle r, Vector2 v)
 {
     return(v.CollidesWith(r));
 }
Exemple #2
0
 public static bool CollidesWith(this Vector2 v, BoundingRectangle r)
 {
     return((r.X <= v.X && v.X <= r.X + r.Width) &&
            (r.Y <= v.Y && v.Y <= r.Y + r.Height));
 }
Exemple #3
0
 public static bool CollidesWith(this BoundingCircle c, BoundingRectangle r, out Vector2 cp)
 {
     return(r.CollidesWith(c, out cp));
 }
Exemple #4
0
 public static bool CollidesWith(this BoundingCircle c, BoundingRectangle r)
 {
     return(r.CollidesWith(c));
 }
Exemple #5
0
        public static bool CollidesWith(this BoundingRectangle r, BoundingCircle c)
        {
            Vector2 collisionPoint;

            return(CollidesWith(r, c, out collisionPoint));
        }