max point on a line