A billiard ball is hit on a rectangular billiard table with length L and width W, and an initial velocity is given to the billiard ball. If the billiard ball does not meet the border,it willmoveunif
A billiard ball is hit on a rectangular billiard table with length L and width W, and an initial velocity is given to the billiard ball. If the billiard ball does not meet the border, it will move uniformly and in a straight line; It will bounce back according to the complete rigidity (the incident angle is equal to the shooting angle) when it encounters the border. If it happens to meet the corner of the billiard table, it will bounce back in the original way. Suppose that the lower left corner of the billiard table is the coordinate origin (0, 0), and the radius of the billiard ball is r. It is known that the starting position of the billiard ball center is (px, py) and the initial velocity is (vx, vy). Please calculate: after time t, where is the billiard ball going?
标签: HBC214802轰炸区最优选取 深度优先搜索(DFS) STL 数据结构 搜索Whereisthebilliardballgoing?题解