Solution (source code)

= Solution

The distance is $|d\cdot\hat n-\beta|=|3/\sqrt2-\sqrt2|=1/\sqrt2$.