Точка в режиме онлайн
return distance(A, C) + distance(B, C) == distance(A, B);
// AB is the line, C is the point to check.
Yash
return distance(A, C) + distance(B, C) == distance(A, B);
// AB is the line, C is the point to check.