M
M
maxemga2020-12-06 12:17:44
Geometry
maxemga, 2020-12-06 12:17:44

How to determine the position of a circle on the coordinate plane?

We have a coordinate plane and a circle.

Input data: X, Y, R - circle radius.

Using these data, you need to determine how many quarters of the coordinate plane the circle touches (the x, y coordinates are the center of the circle and the coordinate axis is also considered).

How?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
U
User700, 2020-12-06
@User700

Consider the first quarter. Write down the geometric condition when the circle intersects (touches?). Initially, the counter is 0. If the condition for the first is met, then increase it by 1. Similarly for the other three

W
Wataru, 2020-12-08
@wataru

Consider options. What does it mean that the circle touches one quarter? This means that it does not intersect with any of the coordinate axes, i.e. the lowest point of the circle is above OX, or the highest point is below OX and similarly for OY.
Can a circle touch two quarters? Easy. If we exclude the first case first, then it turns out that the circle must intersect exactly one of the axes. Further, can a circle touch three-quarters? Draw, think, and understand that it is not (hint - the circle is a convex figure, the segment between any two points in the circle lies entirely in the circle). Only the fourth option remains. Those. if not 1 or 2 quarters, then exactly 4.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question