x0
y0
X
N
N_start
N_end