everhart07
2009-02-14 17:20:48 UTC
Departures are easy for if statements because if the angle is less than 180 degrees, the departure is in an easterly direction. If the angle is greater than 180, then it is in a westerly direction.
My problems come with calculating latitudes (north or south). For north, the logic statement should be if the angle is less than 90 degrees or greater than 270 degrees, and vice versa for the south calculation.
How can I use a logic statement for this calculation?