Include <math.h> for M_PI.