Explain the role of NaN in connectSeparatedPoints.