Fixed bug involving unexpected rotation (used algorithm for line segment, had previously mistakenly used algorithm for line).
Merge branch 'master' of https://github.com/Erotemic/plottool