You have the original triangle, the original position of the sphere and a vector that describes how much the sphere is moving in one frame. Now flip the sign of that vector and imagine it's the triangle moving instead. It should be clear that a collision happens in one situation if and only if it happens in the other situation.
Now, the set of points that are part of the triangle at some time in the frame is a triangular prism, obtained by adding the vector to each of the vertices. So you have the original triangle, the displaced triangle, and three quadrilateral faces that make the walls of the prism.
It's not true that the ball only collides if it changes courts. At least not if you just check what court the center is on. The ball can collide against the net when the center of the ball is less than a radius away from the plane of the net. This may or may nor matter for your project, however.