How to apply this matix in slicer for a modelNode

np.Mtrix(Transform4*4): K, R
position(x,y,z): X(position), Y(target)

(R[2,:]X)Y=KRX

Can I change upper equation to such format : Y=Mat*X. So if X is a Node , I could use it in slicer.
Thanks

未命名_副本

Can I change the equation to such format : Y=Mat*X.