Metacalibration in Geometric Optimization