Optimized numpy loops for adjusting points.