Function inradius

Return the inradius of the triangle with vertices p, q, r.