[OZAPRS] Math Question
Hamish Moffatt
hamish at cloud.net.au
Fri Oct 14 09:21:13 EST 2005
On Fri, Oct 14, 2005 at 08:57:07AM +1000, Darryl Smith wrote:
> People
>
> I am doing some simple coding... I need to work out if two compass
headings
> are within 30 degrees of each other. Simple, eh?
>
> The issue is what happens if one is at 350 degrees and the other is at
10
> degrees?
>
> Any hints?
I think you need to use abs(a - b) and then check for <= 30 or >= 330.
Hamish
--
Hamish Moffatt VK3SB <hamish at debian.org> <hamish at cloud.net.au>
_______________________________________________
Ozaprs mailing list
Ozaprs at aprs.net.au
http://aprs.net.au/mailman/listinfo/ozaprs
More information about the Ozaprs
mailing list