This think line.DistanceFrom does this exact same thing