Notes:
In fact the tangent distance is just the distance of Y from the sub-space including X.