Two fixed points A and B are joined by a segment. The perpendicular bisector — the line that crosses the segment at its midpoint at a right angle — is drawn. Drag the point P, or the points A and B. The distance from P to A and from P to B are shown. P is the same distance from A and from B exactly when it sits on the perpendicular bisector. A toggle snaps P onto the line so the two distances always match. An info button opens a drawer explaining the idea.