Since you're putting the radius into a variable here, can you use it in the `(min|max)Midpoint(X|Y)` calculations above? That way we're only using the constant in one place.