I assume that you either have dx or dy , which is the deltas of the ball coordinate per movement, or the angle (e.g. ฮธ = theta), so in this case dx is 10 * cos (th) and dy is 10 * sin ( th).
You just need to see if x + dx goes along the x-coordinate of the paddle, say 600, and if so, then for simplicity, let's say 2/3 dx is required to get there, so you can use y + dy * (2 / 3) to find out y where the ball will end when the ball reaches the x-coordinate of the blade.
If this y is less than the top of the paddle (top y) or larger than the bottom of the paddle (bottom y), then this is a miss. Otherwise, itโs a blow.
source share