Mutatis Mutandis
New Member
- Joined
- May 6, 2022
- Messages
- 4
- Office Version
- 365
- Platform
- Windows
Hi folks,
Long time lurker but never had an account.
I'm trying to convert x and y coordinates (both positive and negative) to an angle and distance for a mapping project. I can calculate the length no problem but the angle is bugging me?
The origin is always 0,0 in this case.
I need the angle to run clockwise with 0/360 degrees being the positive y axis and run clockwise around the graph?
For example
X1 in cell A1 is 0
Y1 in cell B1 is 0
X2 in cell A2 is 3.3
Y2 in cell B2 is -3.7
Length in C2 is SQRT((A2-A1)^2)+((SQRT(B2-B1)^2)) the answer for the above example is around 4.9
But how do I calculate the angle in say D2 as the angle can be in any of the 4 quadrants? The angle in the above example is around 140 degrees clockwise from the positive Y axis?
I've been trying to sort this out for days and finally give up, my math skills are no longer what they used to be when I was at college
Cheers,
MM
Long time lurker but never had an account.
I'm trying to convert x and y coordinates (both positive and negative) to an angle and distance for a mapping project. I can calculate the length no problem but the angle is bugging me?
The origin is always 0,0 in this case.
I need the angle to run clockwise with 0/360 degrees being the positive y axis and run clockwise around the graph?
For example
X1 in cell A1 is 0
Y1 in cell B1 is 0
X2 in cell A2 is 3.3
Y2 in cell B2 is -3.7
Length in C2 is SQRT((A2-A1)^2)+((SQRT(B2-B1)^2)) the answer for the above example is around 4.9
But how do I calculate the angle in say D2 as the angle can be in any of the 4 quadrants? The angle in the above example is around 140 degrees clockwise from the positive Y axis?
I've been trying to sort this out for days and finally give up, my math skills are no longer what they used to be when I was at college
Cheers,
MM