public static bool CollidesWith(this BoundingRectangle r, Vector2 v) { return(v.CollidesWith(r)); }
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)); }
public static bool CollidesWith(this BoundingCircle c, BoundingRectangle r, out Vector2 cp) { return(r.CollidesWith(c, out cp)); }
public static bool CollidesWith(this BoundingCircle c, BoundingRectangle r) { return(r.CollidesWith(c)); }
public static bool CollidesWith(this BoundingRectangle r, BoundingCircle c) { Vector2 collisionPoint; return(CollidesWith(r, c, out collisionPoint)); }