How to change Decal's rotation at runtime relative to the floor or wall? C++

I don’t wanna be that guy but is it possible to find a simpler maybe perhaps less precise answer to this issue? I don’t’ fully understand your example but I really do appreciate your help.