Thanks guys,
I’ve realized that I’m using a local space coords, because it’s a rotation of the slice plane. Used this
(inverse (matrixFromNormal (A - B))).rotationpart
And is working fine!