用 矩阵 转换 本地坐标和世界坐标。

哪位 大佬,能 讲解一下 使用矩阵进行 坐标的转换的?
let mat: math.Mat4 = parent.getWorldRT()!;
mat = mat.invert();
let p1 = worldPos.transformMat4(mat);