Angle difference between two bearings: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 15: | Line 15: | ||
=={{header|C++}}== |
=={{header|C++}}== |
||
<lang javascript>#include < |
<lang javascript>#include <cmath> |
||
#include <iostream> |
#include <iostream> |
||
#include <algorithm> |
|||
using namespace std; |
using namespace std; |
||
Line 36: | Line 35: | ||
cout << getDifference(-45.0*deg2rad, 125.0*deg2rad)*rad2deg << endl; |
cout << getDifference(-45.0*deg2rad, 125.0*deg2rad)*rad2deg << endl; |
||
cout << getDifference(-45.0*deg2rad, 145.0*deg2rad)*rad2deg << endl; |
cout << getDifference(-45.0*deg2rad, 145.0*deg2rad)*rad2deg << endl; |
||
return 0; |
return 0; |
||
} |
|||
</lang> |
|||
{{out}} |
{{out}} |