Avoid allocating PointF's in a loop.