@classmethod<EOL><INDENT>def rotation(cls, angle, pivot=None):<DEDENT>
ca, sa = cos_sin_deg(angle)<EOL>if pivot is None:<EOL><INDENT>return tuple.__new__(cls, (ca, sa, <NUM_LIT:0.0>, -sa, ca, <NUM_LIT:0.0>, <NUM_LIT:0.0>, <NUM_LIT:0.0>, <NUM_LIT:1.0>))<EOL><DEDENT>else:<EOL><INDENT>px, py = pivot<EOL>return tuple.__new__(<EOL>cls,<EOL>(<EOL>ca,<EOL>sa,<EOL>px - px * ca + py * sa,<EOL>-sa,<EOL>ca,<EOL>py - px * sa - py * ca,<EOL><NUM_LIT:0.0>,<EOL><NUM_LIT:0.0>,<EOL><NUM_LIT:1.0>,<EOL>),<EOL>)<EOL><DEDENT>
Create a rotation transform at the specified angle,
        optionally about the specified pivot point.

        :param angle: Rotation angle in degrees
        :type angle: float
        :param pivot: Point to rotate about, if omitted the
            rotation is about the origin.
        :type pivot: sequence
        :rtype: Affine