Example #1
0
def pdmat4_to_npmat4(pdmat4: Mat4) -> npt.NDArray[float]:
    """
    convert a mat4 matrix to a nparray
    :param pdmat4
    :return: numpy 2darray
    author: weiwei
    date: 20161216sapporo
    """
    return np.array(pdmat4.getRows()).T