def shortPart(path, T):
    if (isclose(T, 0) or isclose(T, 1)):
        return Path()
    if (T < (1 - T)):
        return path.cropped(0, T)
    else:
        return path.cropped(T, 1)
def shortPart(path, T):
    if (isclose(T, 0) or isclose(T, 1)):
        return Path()
    if (T < (1 - T)):
        return path.cropped(0, T)
    else:
        return path.cropped(T, 1)