def set_trans(self, trans_vec):
        """Set the translation components of the matrix."""

        # Column major,  translation components in column 3.
        self.data[3][0] = trans_vec[0]
        self.data[3][1] = trans_vec[1]
        self.data[3][2] = trans_vec[2]
def set_trans ( self , trans_vec ) : self . data [ 3 ] [ 0 ] = trans_vec [ 0 ] self . data [ 3 ] [ 1 ] = trans_vec [ 1 ] self . data [ 3 ] [ 2 ] = trans_vec [ 2 ]
Set the translation components of the matrix.