added prototype for translate_p2d_clipped