by measuring coordinates of points