Courses‎ > ‎Computer Graphics‎ > ‎Dyrland-Weaver‎ > ‎Work‎ > ‎

### Work 02: Enter the matrix

posted Feb 13, 2019, 6:50 AM by JonAlf Dyrland-Weaver   [ updated Feb 15, 2019, 11:58 AM ]
 Essential movie knowledge.This will be due Monday, 2/25Implement the following features but you cannot trivialize the problem by using a structure that already exists in the language you choose:General Matrix stuffmatrix multiplicationcreation of an identity matrixdisplaying a matrix in a reasonable mannerGraphics matrix stuffadd a point to an edge matrixadd an edge to an edge matrix (should call your add point routine)go through an edge matrix and draw the lines stored in the matrix (should call your draw line routine)Create a main function/method that demonstrates all the of matrix routines you wrote, and generates an image using the edge matrix structure. Upload the image to the gallery page.READ THROUGH ALL THE SOURCE FILES. Detailed instructions are provided as comments. Here is an example of output, including a correct matrix multiplication:`Testing add_edge. Adding (1, 2, 3), (4, 5, 6) m2 = ``1.00 4.00 ``2.00 5.00 ``3.00 6.00 ``1.00 1.00 ``Testing ident. m1 =``1.00 0.00 0.00 0.00 ``0.00 1.00 0.00 0.00 ``0.00 0.00 1.00 0.00 ``0.00 0.00 0.00 1.00 ``Testing Matrix mult. m1 * m2 =``1.00 4.00 ``2.00 5.00 ``3.00 6.00 ``1.00 1.00 ``Testing Matrix mult. m1 =``1.00 4.00 7.00 10.00 ``2.00 5.00 8.00 11.00 ``3.00 6.00 9.00 12.00 ``1.00 1.00 1.00 1.00 ``Testing Matrix mult. m1 * m2 =``40.00 76.00 ``47.00 92.00 ``54.00 108.00 ``7.00 16.00 `github clone link:https://github.com/mks66/matrix.git