Lines were not taking into account aspect ratio.
Lines were not taking into account aspect ratio.

Angle at the ends of lines weren't quite right.  If a map was not square, the line itself was not a consistent width, but depending on its orientation.

Switched the arctangents to calculate only when needed, and then use the atan(y, x) form rather than the convolute if-else statements and atan(y / x).

OpenGeoscience/geojs,OpenGeoscience/geojs,Kitware/geojs,essamjoubori/geojs,essamjoubori/geojs,dcjohnston/geojs,OpenGeoscience/geojs,dcjohnston/geojs,essamjoubori/geojs,dcjohnston/geojs,essamjoubori/geojs,Kitware/geojs,Kitware/geojs,dcjohnston/geojs