Closed monkbroc closed 8 years ago
There's a bug in the distanceBetween and courseTo because radians doesn't include its argument in parentheses.
distanceBetween
courseTo
radians
When doing radians(long1-long2) the macro was expanded to long1-long2*M_PI/180.0.
radians(long1-long2)
long1-long2*M_PI/180.0
Thanks
Yikes! Thanks. I'll fix this in the original...!
There's a bug in the
distanceBetween
andcourseTo
becauseradians
doesn't include its argument in parentheses.When doing
radians(long1-long2)
the macro was expanded tolong1-long2*M_PI/180.0
.