The ball’s velocity relative to the court is the sum of two vectors: the ball’s velocity relative to you (a vector pointing down the line, as intended), and your velocity relative to the court (a vector pointing sideways, since that’s the direction you’re running).