/// <summary> /// Given an edge, determine the edge directly to the left of it on the sweep line /// </summary> /// <param name="edge">An edge - not necessarily in the sweepline)</param> /// <returns>If it exists, the edge directly to the left on the sweepline, or null if there is none</returns> private KeyValuePair <EdgeBase, TVertex>?DirectlyLeftOf(EdgeBase edge) { KeyValuePair <EdgeBase, TVertex> result; bool found = helpers.TryGetLargestBelow(edge, out result); if (found) { return(result); } return(null); }
private KeyValuePair <TVertex, TVertex>?DirectlyLeftOf(TVertex vertex) { KeyValuePair <TVertex, TVertex> result; bool found = helpers.TryGetLargestBelow(vertex, out result); if (found) { return(result); } return(null); }