Home > Net >  C # drawing for help
C # drawing for help

Time:09-18

Randomly generated 10 trajectory, sail to uniform distribution of 10 point on the track, and obtain the coordinates of point, asked the track sailing to conform to the actual situation, also is the trajectory of radian, has a corner, with a straight line, have a walk curve, the idea is to first randomly generated 1 point, and then through the formula of computing the next point, and then wired,
Please recommend a good algorithm can meet these requirements,

CodePudding user response:

http://www.shipxy.com/you can see a few ship to ship - the Internet information, there is a speed the bow direction, if it is randomly generated, feel your method is good, as for algorithm can only yourself to simulate, the speed and direction, you can calculate roughly ten minutes after the next display coordinates of points,
  •  Tags:  
  • C #
  • Related