Hello all,
As some of you might know, a compass heading is from 000 to 359 degrees. Now here is my problem.
v1 = 6 // Magnetic Heading
v2 = -10 // Magnetic Variation
In order to find out what is the TRUE HEADING, we need to substract v2 from v1 (6 minus -10).
The result will be -4, but -4 is NOT a heading. The result should be 356.
What would be the formula in C# to accomplish this?
As some of you might know, a compass heading is from 000 to 359 degrees. Now here is my problem.
v1 = 6 // Magnetic Heading
v2 = -10 // Magnetic Variation
In order to find out what is the TRUE HEADING, we need to substract v2 from v1 (6 minus -10).
The result will be -4, but -4 is NOT a heading. The result should be 356.
What would be the formula in C# to accomplish this?