You have a curve not a list of all points of screen! So consider lines not planes!