@classmethod
def from_matrix(cls, matrix):
    """Creates a ``Transformation`` from a 4x4 two-dimensional list of numbers.

        Parameters
        ----------
        matrix : :obj:`list` of :obj:`list` of `float`
            The 4x4 transformation matrix.

        Returns
        -------
        Transformation
            A transformation object.

        """
    T = cls()
    for i in range(4):
        for j in range(4):
            T.matrix[i][j] = float(matrix[i][j])
    return T
