@staticmethod
def _between_(x1s, y1s, x2s, y2s, x, y):
    """
        checks if (x,y) in rectangle of (x1s,y1s)-(x2s,y2s)
        """
    f1 = 1.0 - 1e-12
    f2 = 1.0 + 1e-12
    f3 = 1e-06
    xs_min = min(x1s, x2s)
    if xs_min > 0:
        xs_min *= f1
    else:
        xs_min *= f2
    xs_max = max(x1s, x2s)
    if xs_max > 0:
        xs_max *= f2
    else:
        xs_max *= f1
    ys_min = min(y1s, y2s)
    if ys_min > 0:
        ys_min *= f1
    else:
        ys_min *= f2
    ys_max = max(y1s, y2s)
    if ys_max > 0:
        ys_max *= f2
    else:
        ys_max *= f1
    if xs_min == 0:
        xs_min = -xs_max * f3
    if xs_max == 0:
        xs_max = -xs_min * f3
    if ys_min == 0:
        ys_min = -ys_max * f3
    if ys_max == 0:
        ys_max = -ys_min * f3
    if xs_min <= x <= xs_max and ys_min <= y <= ys_max:
        return True
    else:
        return False
