Everything in Degrees instead of Radians
#13
(10-14-2022, 07:26 PM)James D Jarvis Wrote: oh darn.....  I have been doing it "wrongish"  . I've been trying to do relative bearing for my zoom_trek program and getting it wrong again and again, usually only worked in 2 quadrants.  I just reassigned the sin and cos and it seem to be working now.

For "relative bearing" do you mean the angle of one point to another point, say the base point. That would employ the _Atan2 Function and that returns pos and neg radian angles. If you expect only positive angles you would miss out on half the things around base point.

Do you get the difference of radians versus degrees? I ask because if you prefer degrees I have nice conversion (I think) for finding that "relative bearing" that might be easier to use. Straight _ATan2() is tricky even knowing radians.
b = b + ...
Reply


Messages In This Thread
RE: Everything in Degrees instead of Radians - by bplus - 10-14-2022, 07:46 PM



Users browsing this thread: 4 Guest(s)