1401. Circle and Rectangle Overlapping
Last updated
Last updated
**Input:** radius = 1, x\_center = 0, y\_center = 0, x1 = 1, y1 = -1, x2 = 3, y2 = 1
**Output:** true
**Explanation:** Circle and rectangle share the point (1,0) **Input:** radius = 1, x\_center = 0, y\_center = 0, x1 = -1, y1 = 0, x2 = 0, y2 = 1
**Output:** true**Input:** radius = 1, x\_center = 1, y\_center = 1, x1 = -3, y1 = -3, x2 = 3, y2 = 3
**Output:** true**Input:** radius = 1, x\_center = 1, y\_center = 1, x1 = 1, y1 = -3, x2 = 2, y2 = -1
**Output:** false