Abstract
When a ship moves from point A across the sea to point B, the moving direction is affected by the victor of tidal. It is usually to use the dynamic program to Find the optimal angles for ship when moving, but it needs many point data (vectors) of tidals from point A to point B and solves it sequentially. Here We use the affine transformation to transform the vectors of tidals at point A and B to position-coordination and use the differentials equation to sequentially solve the optimal angles for ship when shipping.