Hi, I'm new to the forum

So, I've had a tricky question I've had for a while. I've tried everything to solve it but can't quite get it.

I have the xspeed and yspeed of a round ball, xspeed is distance ball moves to the right each frame and yspeed distance ball moves down each frame.

I have 3 different gradients of slopes, one is at 15 degrees off the horizontal.

How can I calculate the xspeed and yspeed of the ball after a collision with, for instance, the 15 degree slope.

Thank you so much for any help, I have been stuck on this for such a long time now.