If the line intersects the x-axis at the point A and the y-axis at the point B,then the incentre of the triangle OAB, where O is the origin, is:
The distance on the y-axis from the origin where the straight line cuts it.
From the fig (r,r) is the center of circle.
Distance from point (r,r) to the line
centre is (2,2)