I have no clue about the math needed for this. Please help me.

I have several unknown points on a 2D graph. IE: -1,5 3,3 -7,-8 4,-9

How would I rotate them X number of degrees? (A function would be appreciated.)