parameters: (self, r)
docstring: Translates molecule by r.
  
          >>> H2OH2O.translate([1.0, 1.0, 0.0])
docstring_summary: Translates molecule by r.
docstring_tokens: Translates molecule by r .
function: def translate(self, r):
          """Translates molecule by r.
  
          >>> H2OH2O.translate([1.0, 1.0, 0.0])
  
          """
          temp = [None, None, None]
          for at in range(self.nallatom()):
              temp = scale(self.full_atoms[at].compute(), self.input_units_to_au())
              temp = add(temp, r)
              temp = scale(temp, 1.0 / self.input_units_to_au())
              self.full_atoms[at].set_coordinates(temp[0], temp[1], temp[2])
function_tokens: def translate ( self , r ) : temp = [ None , None , None ] for at in range ( self . nallatom ( ) ) : temp = scale ( self . full_atoms [ at ] . compute ( ) , self . input_units_to_au ( ) ) temp = add ( temp , r ) temp = scale ( temp , 1.0 / self . input_units_to_au ( ) ) self . full_atoms [ at ] . set_coordinates ( temp [ 0 ] , temp [ 1 ] , temp [ 2 ] )