Angle difference between two bearings: Difference between revisions

(Created page with "Category:Geometry {{draft task}} Finding the angle between two bearings is often confusing.<ref>[https://stackoverflow.com/questions/16180595/find-the-angle-between-two-be...")
 
Line 16:
=={{header|Javascript}}==
 
<lang javascript>varfunction deg2radrelativeBearing(b1Rad, = 3.14159265/180.0;b2Rad)
var rad2deg = 180.0/3.14159265;
 
function relativeBearing(b1Rad, b2Rad)
{
b1y = Math.cos(b1Rad);
Anonymous user