For this assignment, we were to create our own functions to perform rotation and translation on values stored in a matrix. My program waits for a user to input 3 points on the screen by clicking on any location. Once the three points have been input, the user may hit Enter/Return to make the program show the steps it takes in rotating the triangle.

Basically, the initial triangle (the TAN colored one) is translated to the origin (that is drawn as the RED triangle). It is then rotated correctly (that is the GREEN triangle) and then translated back to the location of the original triangle (which is the BLUE triangle
But... That is not the only thing this program does. Should the user click the screen more than the initial three times, the program will do some pretty interesting stuff. You can try it out yourself
here.Please note that if you press the DELETE button, you can reset the screen and create a new masterpiece.
The source code is located
here.