In this algorithm one rectangle has been transformed 30-degree angle and it also move from the current object by x 100 and y 100. Here the white rectangle is input and red one is output. INPUT: OUTPUT: #include <windows.h> #include <GL/glut.h> #include <stdlib.h> #include <iostream> #include <string> #include <string> #include <ctype.h> #include <math.h> #include <stdio.h> #include <map> #include <vector> using namespace std; int trans_x,trans_y; #define pi 2.0*acos(0) long x_min,x_max,y_min,y_max; vector <int>x_cor; vector <int>y_cor; long draw_line(long x_start , long y_start , long x_end, long y_end) { glBegin(GL_LINES); glVertex2f(x_start,y_start); //start points glVertex2f(x_end,y_end); // end...
Network programming and scalable micro-services in Azure