The distance of the point from the line measured along the line is
The slope of the line is 1. So, it makes an angle of with axis.
The equation of a line passing through and making an angle of is given by
Co-ordinates of any point on this line are
or,
If this point lies on the line , then
Hence, required distance units .