Compensation height of tool as function of horizontal position of spindle head, bending