[PLAT-3390] Piecewise Polynomial Function for 2D