def getSegmentsFromXIntersectionIndexes(xIntersectionIndexList, y):
 xIntersections = getXIntersectionsFromIntersections(xIntersectionIndexList)
 return getSegmentsFromXIntersections(xIntersections, y)

def getSegmentsFromXIntersectionIndexes ( xIntersectionIndexList , y ) : xIntersections = getXIntersectionsFromIntersections ( xIntersectionIndexList ) return getSegmentsFromXIntersections ( xIntersections , y )
get endpoint segments from the x intersection indexes .