@classmethod<EOL><INDENT>def translation(cls, xoff, yoff):<DEDENT>
return tuple.__new__(cls, (<NUM_LIT:1.0>, <NUM_LIT:0.0>, xoff, <NUM_LIT:0.0>, <NUM_LIT:1.0>, yoff, <NUM_LIT:0.0>, <NUM_LIT:0.0>, <NUM_LIT:1.0>))<EOL>
Create a translation transform from an offset vector.

        :param xoff: Translation x offset.
        :type xoff: float
        :param yoff: Translation y offset.
        :type yoff: float
        :rtype: Affine