﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6541	[patch] bugfix in coordinate heading function	anonymous	team	"This fixes three bugs in LatLon.heading(LatLon other) .
* The case of (d_lon==0) and (d_lat<0) was treated wrong. Instead of yielding pi which would smoothly bridge the neighbouring values, a value of 0 was returned in this special case. The usage of atan2 helps a lot in avoiding such problems.
* The transition from 359° to 1° was not treated properly. Instead of 2° it would have assumed -358° for the horizontal distance which gives an unexpected heading.
* a cosine factor was introduced to the difference of longitudes to account for the convercenge of meridians towards the pole. Please check if this functionality is exactly what calling functions expect!"	defect	closed	normal		Core	latest	fixed	heading atan2	
