Assignment 1

Affine Transformations

Your browser does not support HTML5
// Modify the view matrix to apply transformations to all objects. // To visualize the 5 target transformations, press keys 1-5. modifyViewMatrix = function(M){ M.translate(0, 0, 0); // Translates all objects by 0 (X), 0 (Y), 0 (Z) M.rotate(0, 0, 0); // Rotates all objects in relation to axes (in radians) M.scale(1, 1, 1); // Scales object by multiplier in X,Y,Z };