One side of a triangle is divided into segments of length a and b by the inscribed circle, with radius r.