bool operator<(const ScanLine &other) const { if (x != other.x) return x < other.x; return delta < other.delta; }
扫描线的 x 值可能重复,故 x 相同时,将 delta 为负者排在前面。
x
delta