Distance and point-line relationship