My original guess was correct.  `fromPointsNaiveCenterScratch` is necessary because `fromPointsScratch` is used in the for loop below this code; the loop modifies `fromPointsScratch` but needs to reuse the same value for `naiveCenter`.