Declaring DistanceToLine as accessor.