Geometry questions (Angles and triangles)
I''ve got two geometry questions, I''ve searched all my geometry books and havn''t found anything that helps.
My first problem is this:
In this, I know A & B, and I can compute C (With the Pythagorean theorem ).
I know that it is a right angle triangle, but I can''t figure out how to figure out the angles.
(I need an equation I can convert into code)
My second problem:
I''ve got two points on a plane, and I need to find the angle of the A point in relation to the Y axis.
I can find the slope of the line, but I don''t know how to convert this into degrees (Or radians)
Now that I look at it, the second problem is the same as the first!
If the Arc Tangent works for the first, I should be able to apply it to the second.
Heh, solved my own problem. Sorry to waste space
If the Arc Tangent works for the first, I should be able to apply it to the second.
Heh, solved my own problem. Sorry to waste space
1. Angle AC is arctan( b / a ). Angle BC is arctan( a / b ).
2. The angle is arctan( (b.x - a.x) / (b.y - a.y) ).
Edit: seems I was a bit too slow
[edited by - Martee on June 28, 2002 9:53:27 PM]
2. The angle is arctan( (b.x - a.x) / (b.y - a.y) ).
Edit: seems I was a bit too slow
[edited by - Martee on June 28, 2002 9:53:27 PM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement