How convert a point on an X and Y grid to a angle degree?

Click For Summary

Homework Help Overview

The discussion revolves around converting a point on an X and Y grid, defined by the intersection of a linear equation and a circular equation, into an angle in degrees. The original poster seeks to understand how to derive this angle, particularly in the context of the line's slope and its relationship to time represented by the circle.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss the relationship between the slope of the line and the angle it forms with the horizontal axis. There is an exploration of trigonometric functions, particularly sine and cosine, in relation to the defined point on the grid. The original poster expresses uncertainty about how to proceed with the conversion to an angle.

Discussion Status

Some participants have provided insights into the mathematical relationships involved, particularly regarding the tangent of the angle and its connection to the slope of the line. However, the discussion remains open, with the original poster still seeking clarity on the application of these concepts.

Contextual Notes

The original poster references a connection to a previous discussion about time and angles, indicating a potential application of the angle conversion in a broader context. There is also mention of using a C++ program to visualize the situation, suggesting a practical approach to understanding the problem.

Xarzu
<Moderator's note: Moved from a technical forum and thus no template.>

Hello Forum,

This post is a spin-off from this post:

https://www.physicsforums.com/threa...een-watching-the-sun-set.925257/#post-5840279

If I have an X and Y point on a grid that represents the intersection of two formulas: A straight line (aX = Y) where "a" represents a constant number with a circle (X 2 + Y 2 = radius 2, how would I convert that point into a degree of an angle? The angle would represent the line function albeit only go one direction on the grid. It would be some degree.

If I were to guess, this might be very simple and have something to do with cosine rules.
 
Last edited by a moderator:
Physics news on Phys.org
Yes. Have you drawn the situation? And what do you know about how cosine and sine are defined?
 
fresh_42 said:
Yes. Have you drawn the situation? And what do you know about how cosine and sine are defined?
I have an X and Y point of intersection. Yes, I have drawn the situation thanks to a C++ program (if you are following the other thread). Anyway, it is just a line going out from the middle of the grid now. I want to convert this line to an angle somehow. How do I do that? If it were an angle, then this would help me to convert into time since the circle represents a 24 hour period. Any ideas?

I am not really sure what you mean.
 
Xarzu said:
If I have an X and Y point on a grid that represents the intersection of two formulas: A straight line (aX = Y) where "a" represents a constant number with a circle (X2 + Y2 = radius2, how would I convert that point into a degree of an angle? The angle would represent the line function albeit only go one direction on the grid. It would be some degree.
It sounds like you're trying to find the angle that the line y = ax makes with the horizontal, so the circle isn't needed at all.
The coefficient a represents the slope of the line, where slope = tangent(angle).

For example, the line y = 2x has a slope of 2, so ##2 = tan(\theta)##, with ##\theta## being often used to represent an angle.
Take the inverse tangent (##\tan^{-1}## or ##\arctan##) of both sides to get
##\tan^{-1}(2) = \theta##. In degrees, ##\theta## is about 63.4°.
 
  • Like
Likes   Reactions: Xarzu
Thank you for the answer. I will apply it now.
:smile:
 

Similar threads

Replies
17
Views
3K
Replies
7
Views
2K
Replies
20
Views
4K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
24
Views
3K