I've hit a snag in my program. I need to take any three given coordinates and orient them in a counter-clockwise fashion.
Any point can be chosen as the first (in my case, I've chosen the coordinate with the least y-value and if another coordinate shares that y-value, I go with the coordinate with the least x-value)
In other words, the first coordinate is the bottom-most-left-most point.
I can get the other points in counter-clockwise orientation using a lot of if-else conditional statements, but I'm looking for a more elegant solution.
(BTW, I'm not looking for code, just help with the algorithm)