Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
Circle A is moving to the right toward a stationary circle B. Which of the conditions below determine the moment circle A will collide with circle B?
A.getX() == B.getX()
(A.getX() - A.getRadius()) == (B.getX() + B.getRadius())
(A.getX() + A.getRadius()) == (B.getX() - B.getRadius())
(A.getX() + A.getRadius()) == (B.getX() + B.getRadius())