quote:Original post by YodaTheCoda why does this not gi ve me the angle?
What angle is "the" angle? The angle you calculate is the angle between the positive x-axis and the vector (v2-v1). If this is not the angle you want then that is the reason you don''t get it.
YodaTheCoda is a troll. He''s winding you all up, look at his profile for his past posts (he keeps telling beginners all C++ is compiled to Cobol and then to Assembly, for one).
That''s a handy feature. Certainly a drastic differance in his command of the language from some of those other posts to this isn''t there. Something does seem a bit fishy.
Keys to success: Ability, ambition and opportunity.