Commit be2b8101 authored by Stefan Sechelmann's avatar Stefan Sechelmann

outgoing edges

git-svn-id: https://svn.math.tu-berlin.de/svn/jtem@1266 f5b180c5-49ee-4939-b20e-b6ed35f0f7b7
parent 01a8c449
......@@ -429,6 +429,22 @@ public final class HalfEdgeUtils {
} while (e != e0);
return result;
}
/**
* Return a list of the edges which have a given vertex as start vertex.
* @param vertex the vertex
* @return the list of outgoing edges, in clockwise order
* @see incomingEdges
*/
static public <E extends Edge<V,E,?>, V extends Vertex<V,E,?>> List<E> outgoingEdges(V vertex){
List<E> incoming = incomingEdges(vertex);
List<E> result = new ArrayList<E>(incoming.size());
for (E e : incoming) {
result.add(e.getOppositeEdge());
}
return result;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment