The distance field query returns a positive distance if it is outside a mesh and a negative distance if it’s inside a mesh.
You can easily verify it with a scratch pad like this: