[m] added coordinate is on line checking