Depenetrating overlaps in C++

Oh I don’t mean depenetrating during the simulation, I want to calculate the depenetration vector in C++.