Distance from a Point to a Line or to a Plane