def is_nonzero_segment(vector_start, vector_end):
    """Return True if the segment has a nonzero length"""
    return not (
        vector_start.x == vector_end.x and
        vector_start.y == vector_end.y)