3
answers
0
watching
304
views
13 Oct 2018
18. Fill in the blank so that this function returns true if the circle at xl, yl, with radius rl, has collided with the circle at x2, y2, with radius r2. boolean collided (int xl, int yi, int ri, int x2, int y2, int r2) | return A. dist (xl, yl, x2, y2) <= rl+r2 B. abs (x1-x2) >= rl+r2 && abs (yl-y2) <= rl+r2 C. A and B will both work D. Neither A nor B work but one would be correct if the <= was > E. Neither A nor B work but both would be correct if the <= was >
18. Fill in the blank so that this function returns true if the circle at xl, yl, with radius rl, has collided with the circle at x2, y2, with radius r2. boolean collided (int xl, int yi, int ri, int x2, int y2, int r2) | return A. dist (xl, yl, x2, y2) <= rl+r2 B. abs (x1-x2) >= rl+r2 && abs (yl-y2) <= rl+r2 C. A and B will both work D. Neither A nor B work but one would be correct if the <= was > E. Neither A nor B work but both would be correct if the <= was >
29 Jun 2023
janmaymaymayLv1
12 Oct 2022
Already have an account? Log in
Sixta KovacekLv2
15 Oct 2018
Already have an account? Log in