Differentiable Collision-Free Parametric Corridors