how to formulate floor plan with quadratic equations?