def triangle_geometry(triangle):
    """
    Compute the area and circumradius of a triangle.

    Parameters
    ----------
    triangle : (1x3) array-like
        The indices of the points which form the triangle.

    Returns
    -------
    area : float
        The area of the triangle
    circum_r : float
        The circumradius of the triangle
    """
    point_a = triangle[0]
    point_b = triangle[1]
    point_c = triangle[2]
    # Lengths of sides of triangle
    x_diff_ab = point_a[0]-point_b[0]
    y_diff_ab = point_a[1]-point_b[1]
    x_diff_bc = point_b[0]-point_c[0]
    y_diff_bc = point_b[1]-point_c[1]
    x_diff_ca = point_c[0]-point_a[0]
    y_diff_ca = point_c[1]-point_a[1]

    length_a = ((x_diff_ab * x_diff_ab) + (y_diff_ab * y_diff_ab))**0.5
    length_b = ((x_diff_bc * x_diff_bc) + (y_diff_bc * y_diff_bc))**0.5
    length_c = ((x_diff_ca * x_diff_ca) + (y_diff_ca * y_diff_ca))**0.5
    # Semiperimeter of triangle
    semiperimeter = (length_a + length_b + length_c) / 2.0
    # Area of triangle by Heron's formula
    area = (semiperimeter * (semiperimeter - length_a) *
            (semiperimeter - length_b) * (semiperimeter - length_c))**0.5
    if area != 0:
        circumradius = (length_a * length_b * length_c) / (4.0 * area)
    else:
        circumradius = 0

    return area, circumradius