I think you have to add some math nodes in between then. There is awoman on YouTube that specializes in math for game mechanics, but i loose interest if it gets too complicated.
https://www.researchgate.net/figure/Effect-of-incline-on-incident-angles_fig3_362021392
https://youtube.com/@acegikmo?si=cYQUi5oRrcq75wrE