def create_transformation(self, rotation=None, translation=None):
mat = None<EOL>if rotation is not None:<EOL><INDENT>mat = Matrix44.from_eulers(Vector3(rotation))<EOL><DEDENT>if translation is not None:<EOL><INDENT>trans = matrix44.create_from_translation(Vector3(translation))<EOL>if mat is None:<EOL><INDENT>mat = trans<EOL><DEDENT>else:<EOL><INDENT>mat = matrix44.multiply(mat, trans)<EOL><DEDENT><DEDENT>return mat<EOL>
Creates a transformation matrix woth rotations and translation.

Args:
    rotation: 3 component vector as a list, tuple, or :py:class:`pyrr.Vector3`
    translation: 3 component vector as a list, tuple, or :py:class:`pyrr.Vector3`

Returns:
    A 4x4 matrix as a :py:class:`numpy.array`