Make piecewise degree method const