title: Check if circle contains rectangle
body: <p>How can I check if a Circle <strong>completely</strong> contains a Rectangle (in Java)?</p>
  
  <pre><code>public class Circle {
     //x and y define the top left corner of the square bounding this circle
     public int x, y, radius;
  }
  
  public class Rectangle {
     //x and y define the top left corner
     public int x, y, width, height;
  }
  
  public boolean circleContainsRectangle(Circle circle, Rectangle rect) {
     ...
  }
  </code></pre>