Refactored to use corner_centres(). Added function to calculate minimum corner radius given edge clearance