This patch introduces a new Extension Mode option to the Translate node, replacing the current repeat option and adding an extra Extend mode when the nearest boundary pixel is sampled. The option allows choosing from Zero, Repeat, and Extend for each of the axis independently. A new generic sample method was added to the Result class for sampling with arbitrary interpolation and extension modes. Pull Request: https://projects.blender.org/blender/blender/pulls/140607