Two degrees of freedom: say h and d
One inequality constraint: the ladder must be above the free standing wall.