you could also use M_PI here to have pure C code