x+y-1=0关于点(a,b)的对称直线的斜率=-1
过(a,b)与x+y-1=0垂直的直线:y=x-a+b
x+y-1=0 y=x-a+b联立得交点:((1+a-b)/2, (1-a+b)/2)
设交点的对称点为:(m, n)
则 m+(1+a-b)/2=2a n+(1-a+b)/2=2b
m=2a-1/2-a/2+b/2=-1/2+3a/2+b/2
n=2b-1/2+a/2-b/2=-1/2+a/2+3b/2
x+y-1=0关于点(a,b)的对称直线 y=-(x+1/2-3a/2-b/2)-1/2+a/2+3b/2
即:x+y+1-2a-2b=0