This fixes #7451.  It now takes in two points.