function to translate dose by the passed x,y,z values