//------------------------------------------------------------------------交集
public static PointLineBag intersection(CoordinateSeq me, CoordinateSeq l2)
{
PointLineBag geometrys = new PointLineBag();
List<MonotonyChain> chains1 = getMonotonyChains(me);
List<MonotonyChain> chains2 = getMonotonyChains(l2);
for (MonotonyChain chain1 : chains1)
{
for (MonotonyChain chain2 : chains2)
{
geometrys.add(chain1.intersection(chain2));
}
}
return geometrys;
}