The Height Dependence of the Magnetic Vector Field in Sunspots