Merge pull request #186 from jackd/master

fixed angleTo implementation, added tests