Update in calculating points in rectangle.