def dot_product(a,b):
    """
    Computes the dot-product of two vectors.

    Parameters
    ----------
    a : (x,y) tuple
    b : (x,y) tuple

    Returns
    -------
    float
    """
    return a[0]*b[0] + a[1]*b[1]