legendre now supports polar coordinates