Orienting Yourself: The Use of Coordinates · Question 20 of 21
A computer graphics program displays images on a rectangular screen whose coordinate system has the origin at the…
Question 204 marksMedium
A computer graphics program displays images on a rectangular screen whose coordinate system has the origin at the bottom-left corner. The screen is 800 pixels wide and 600 pixels high. A circular icon of radius 80 pixels is drawn with its centre at the point A (100,150). Another circular icon of radius 100 pixels is drawn with its centre at the point B (250,230). Determine:
(i) whether any part of either circle lies outside the screen.
(ii) whether the two circles intersect each other.
The screen occupies 0≤x≤800 and 0≤y≤600.
(i) A circle stays fully on the screen when its centre is at least one radius away from all four edges. Test each circle against all four.
Every one of the eight checks is satisfied, so no part of either circle lies outside the screen.
(ii) Two circles intersect when the distance between their centres is less than the sum of their radii but greater than the difference. Find the distance AB: