---------------------------------------------------------------- Would you like a (r)otation or a (s)cale operation: s What is the fixed point for the transformation? Enter x y separated by spaces: 3 4 What is the scale factor? 5 The composite matrix is: 5.000 0.000 -12.000 0.000 5.000 -16.000 0.000 0.000 1.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: 3 4 Result has coordinates 3.000 4.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: 3 3 Result has coordinates 3.000 -1.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: 3 5 Result has coordinates 3.000 9.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: 0 0 Result has coordinates -12.000 -16.000 Would you like to apply this transformation to a sample point? n Goodbye. ---------------------------------------------------------------- Would you like a (r)otation or a (s)cale operation: r What is the fixed point for the transformation? Enter x y separated by spaces: 3 4 What is the clockwise angle of rotation (in degrees)? 90 The composite matrix is: 0.000 1.000 -1.000 -1.000 0.000 7.000 0.000 0.000 1.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: 3 4 Result has coordinates 3.000 4.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: 4 4 Result has coordinates 3.000 3.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: 0 0 Result has coordinates -1.000 7.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: 3 0 Result has coordinates -1.000 4.000 Would you like to apply this transformation to a sample point? n Goodbye. ---------------------------------------------------------------- Would you like a (r)otation or a (s)cale operation: r What is the fixed point for the transformation? Enter x y separated by spaces: -4 0 What is the clockwise angle of rotation (in degrees)? -60 The composite matrix is: 0.500 -0.866 -2.000 0.866 0.500 3.464 0.000 0.000 1.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: -4 0 Result has coordinates -4.000 0.000 Would you like to apply this transformation to a sample point? y Enter x and y separated by spaces: 0 0 Result has coordinates -2.000 3.464 Would you like to apply this transformation to a sample point? n Goodbye. ----------------------------------------------------------------