parameters: (self, origin, axis, order, tol=DEFAULT_SYM_TOL)
return_statement: return True
docstring: Is *axis* an axis of order *order* with respect to *origin*?
docstring_summary: Is *axis* an axis of order *order* with respect to *origin*?
docstring_tokens: Is * axis * an axis of order * order * with respect to * origin * ?
function: def is_axis(self, origin, axis, order, tol=DEFAULT_SYM_TOL):
          """Is *axis* an axis of order *order* with respect to *origin*?
  
          """
          for i in range(self.natom()):
              A = sub(self.xyz(i), origin)
              for j in range(1, order):
                  R = A
                  R = rotate(R, j * 2.0 * math.pi / order, axis)
                  R = add(R, origin)
                  atom = self.atom_at_position(R, tol)
                  if atom < 0 or not self.atoms[atom].is_equivalent_to(self.atoms[i]):
                      return False
          return True
function_tokens: def is_axis ( self , origin , axis , order , tol = DEFAULT_SYM_TOL ) : for i in range ( self . natom ( ) ) : A = sub ( self . xyz ( i ) , origin ) for j in range ( 1 , order ) : R = A R = rotate ( R , j * 2.0 * math . pi / order , axis ) R = add ( R , origin ) atom = self . atom_at_position ( R , tol ) if atom < 0 or not self . atoms [ atom ] . is_equivalent_to ( self . atoms [ i ] ) : return False return True