是否有函数 returns glm 中两个 4x4 矩阵之间的变化

Is there a function that returns the changes between two matrices4x4 in glm

我需要找到两个时间 t1 和 t2 之间发生的变化,我对它们都有 glm::mat4 (m1,m2)我目前正在使用以下代码(不起作用):

glm::mat4 changes ( const glm::mat4& m1 , const glm::mat4& m2 ){
    return m1 / m2 ;
}

好的,经过我的研究我找到了一个解决方案,我使用 glm::decompose 然后我按照我想要的方式管理数据以获得之前的结果。