measured from the normal to the boundary