Original Post
Hi Folks, I am trying to write a program for a real world project, although the maths could easily be applied to gaming projects too. I am using openGL and VC++ Express. What I am trying to do is make a instrument for a pilot in a aeroplane to fly a search pattern, like what you would do for a missing people at sea. The search pattern i want to impliment initally is a creeping line search pattern which looks like so: (2)-----<----* | | *------>-----* | | *-----<-----(1) The search pattern is general defined by Map Grid coordinates of the two corners of a box (1) and (2). And a sweep width, which is not shown above, but is the vertical spacing in my diagram. Note that although my picture is aligned with the x/y axis the box could be offset to any angle. The problem is coming up with an algorithm definging the turning points (*) If anyone can help out here I would be really grateful. I have kinda hashed the maths of it on some paper, but wouldnt really know how to get it into code. Cheers -AL