def is_in_segment(a, b, c):
    """
    Checks if the passed numpy arrays are in the segment

    :param a: numpy array of first endpoint of the line segment
    :param b: numpy array second endpoint of the line segment
    :param c: numpy array of the tested point
    """
    cross_product = (c[1] - a[1]) * (b[0] - a[0]) - (c[0] - a[0]) * (b[1] - a[1])
    if abs(cross_product) > 0.00001:
        return False
    dot_product = (c[0] - a[0]) * (b[0] - a[0]) + (c[1] - a[1]) * (b[1] - a[1])
    if dot_product < 0:
        return False
    length2_ba = (b[0] - a[0])**2 + (b[1] - a[1])**2
    if dot_product > length2_ba:
        return False
    return True