sonic: use M_SQRT2