/** * Returns the zero-based index of the given Edge, after sorting in ascending order * by angle with the positive x-axis. */ public int getIndex(Edge edge) { return deStar.getIndex(edge); }
/** * Returns the {@link DirectedEdge} on the right-hand (CW) * side of the given {@link DirectedEdge} * (which must be a member of this DirectedEdgeStar). */ public DirectedEdge getNextCWEdge(DirectedEdge dirEdge) { int i = getIndex(dirEdge); return (DirectedEdge) outEdges.get(getIndex(i - 1)); } }
/** * Returns the zero-based index of the given Edge, after sorting in ascending order * by angle with the positive x-axis. */ public int getIndex(Edge edge) { return deStar.getIndex(edge); }
/** * Returns the {@link DirectedEdge} on the right-hand (CW) * side of the given {@link DirectedEdge} * (which must be a member of this DirectedEdgeStar). */ public DirectedEdge getNextCWEdge(DirectedEdge dirEdge) { int i = getIndex(dirEdge); return (DirectedEdge) outEdges.get(getIndex(i - 1)); } }