I am trying to rotate some lines and it is not working for points less than zero. I assume it is a function of the way I'm using the trig functions, but my memory of them is a bit fuzzy, so this is a review…