Effect of endpoint conditions on position and velocity near impact in tennis