Determine angle between player direction and wall

I don’t why do you want to know the angles. But if it is only to know if it is left or right of the player, this is what I use and it works for me: