maxPoints in 2D