calculation for excercise 6/4b
rotating and translating the utah teapot via keyboard