line.scale(origin, angle)

Rotate the line by angle around origin.