Ax+By+C=0.......(i)
Slope of line =m=−AB
Let the slope of perpendicular be m′
mm′=−1−ABm′=−1⇒m′=BA
Equation of perpendicular is
y−k=BA(x−h)Ay−Ak=Bx−BhBx−Ay+Ak−Bh=0......(ii)
Angle bisector of (i) and (ii) is
Bx−Ay+Ak−Bh√B2+A2=±Ax+By+C√A2+B2Bx−Ay+Ak−Bh=±(Ax+By+C)B(x−h)−A(y−k)=±(Ax+By+C)