More idiomatic destructuring
Make clear what the intermediate calculation is
Add failing test for obtuse angle