In this program, basically user is free to enter what ever the point coordinates he/she likes. But minimally there have to be 4 coordinates. Because triangle is always a convex hull. So this programs strictly tries get first 4 coordinates from the user. After that user can choose whether he/she wants to enter more coordinates or not. This program uses a very smart function named findAng(), which able to convert the -PI,+PI range of antan2() function in to positive degree angle according to the quadrant which the angle is in. So by that it finds the convex hull according to the given set of points. Comments are placed in relevant places of the source code where an explanation is needed.
Technical Details :
This progam was compiled using: GNU GCC Compiler version(Debian-Linux/Linaro 4.4.4-14deb5) 4.4.5
The program was ran and tested under: Debian-Linux 2.6.35-30-generic
Last modified on Friday, 06 January 2012 13:14