5
answers
0
watching
534
views
14 Jan 2018

25. 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 yl, int ri, int x2, int y2, int r2) { return A. B. dist(xl, yl, x2, y2) <= rl+r2 abs(x1-x2) >= rl+r2 && abs(yl-y2) <= rl+r2 A and B will both work Neither A nor B work but one would be correct if the <= was > Neither A nor B work but both would be correct if the <= was >=

For unlimited access to Homework Help, a Homework+ subscription is required.

Unlock all answers

Get 1 free homework help answer.
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Already have an account? Log in
Hubert Koch
Hubert KochLv2
15 Jan 2018
Already have an account? Log in
Start filling in the gaps now
Log in