parameters: (angle: float)
return_statement: return PGSymmetry(
          np.asarray([[np.cos(angle), -np.sin(angle)], [np.sin(angle), np.cos(angle)]])
      )
docstring: Returns a 2D rotation by `angle` degrees.
  
      Args:
         angle: the angle of rotation in degrees.
docstring_summary: Returns a 2D rotation by `angle` degrees.
docstring_tokens: Returns a 2D rotation by angle degrees .
function: def rotation(angle: float) -> PGSymmetry:
      """
      Returns a 2D rotation by `angle` degrees.
  
      Args:
         angle: the angle of rotation in degrees.
      """
      angle = np.radians(angle)
      return PGSymmetry(
          np.asarray([[np.cos(angle), -np.sin(angle)], [np.sin(angle), np.cos(angle)]])
      )
function_tokens: def rotation ( angle : float ) -> PGSymmetry : angle = np . radians ( angle ) return PGSymmetry ( np . asarray ( [ [ np . cos ( angle ) , - np . sin ( angle ) ] , [ np . sin ( angle ) , np . cos ( angle ) ] ] ) )