I am not so familiar trigonometry, but I have only two points to rotate in 2D:
*nx, ny . - . -
According to Polar coordinate system artycle on Wikipedia:
x = r * cos(deg) y = r * sin(deg)
r
Rotation Centre
Rotated Point
deg