If you look at the code in the link, you'll see it includes <math.h> - sin(), cos(), etc. are just C functions, you can use them in C++ apps as well. <cmath> just embedds the function names into the std namespace (as J-P already explained) to avoid potential name clash.
Bookmarks