Replying to:

@dotproto.com I’m not terribly good at Trig, so this was a bit of an adventure to work through. Luckily the library was structured such that it was pretty easy to find where the bug was happening, but it took much longer to untangle why and how to fix it

Simeon Vincent @dotproto