BC21,
Nice diagram.
So if you can see the contact point on the OB, just double the distance to the out side from that point to the center of the OB.
PJ's diagram:
Because of geometry, it doesn't work when the CB and OB are too close together.
Have fun.