<p>What is the difference between <code>atan</code> and <code>atan2</code> in C++?</p>

```
std::atan2
```
allows calculating the arctangent of all four quadrants.
```
std::atan
```
only allows calculating from quadrants 1 and 4.