def in_circle(x, y, a=0, b=0, r=25):
    """Check if 2D coordinates are within a circle

    Optional arguments offset the circle's centre and specify radius

    returns True if x,y is in circle of position a,b and radius r
    """
    x -= a
    y -= b
    return x * x + y * y < r * r