Can handle both sequential 2-d points and dan