How to constrain line to plane

Hi, my second day with GH without success because of an absence of documentation.
I want to keep line on plane XY, my GH+K2 put only vertices ensteed

OnPlane_re.gh (8.4 KB)

Thank you
Is it a simplest way?
Is it possible to use original geometry?