define _USE_MATH_DEFINES to get non-standard constant M_PI