Hacker News new | past | comments | ask | show | jobs | submit login

>We are inherently used to 2D coordinate systems being X, then Y.

I once wasted a whole afternoon looking for a bug until I realized that atan2 takes y first, then x.

https://www.cplusplus.com/reference/cmath/atan2/




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: