added interpolation method of line and point