title: Calculating rec range of middle point and radius
body: <p>I search a lot for a solution for this thread and surprisingly I didn't find the solution.</p>
  
  <p>I would like to calculate the range(rect) that surrounding my middle point using a given radius.</p>
  
  <p>I'm guessing that the milestones for finding the solution is to calculate the distance between the middle point and the top left point of the rect. From here it's ambiguous for me.</p>
  
  <p>p.s - answers that contains implementation using libraries that run over jvm(java, scala, groovy, python) would be accepted.</p>