Determination of position and radius of ball joints