A
A
Alex Kolyhov2020-06-08 15:37:15
Mathematics
Alex Kolyhov, 2020-06-08 15:37:15

How to find the angle between the Y+ axis and the line drawn to a point on the coordinate system?

5ede30200c7bc568617649.jpeg
I drew as best I could :)

I can't find a solution to this problem, so I turn to you.
I need to find the Z angle, which is in this picture. X and Y values ​​from -1 to 1.

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Grigory Boev, 2020-06-08
@ProgrammerForever

Here it is easiest to use the scalar product . In this case, a unit vector along Y (a unit vector, since it's easier to calculate later), and the radius vector of a point. From the finished scalar product, you can find the cosine of the angle, and from it the angle itself

G
galaxy, 2020-06-08
@galaxy

In the first quarter - atan(x/y).
In 2-3 - pi + atan(x/y)
In 4 - 2*pi + atan(x/y)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question