Nonhomogeneous quadratic duality and curvature