|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.javagl.simplemesh.utils.Adjacency
public class Adjacency
Utility methods for adjacency tests
Method Summary | |
---|---|
static boolean |
areAdjacent(Edge e0,
Edge e1)
Returns whether the given edges are adjacent |
static boolean |
containAdjacent(java.lang.Iterable<? extends Edge> edges0,
java.lang.Iterable<? extends Edge> edges1)
Returns whether the given sequences of edges contain adjacent edges |
static boolean |
containsAdjacent(java.lang.Iterable<? extends Edge> edges,
Edge edge)
Returns whether the given sequence of edges contains an edge that is adjacent to the given edge |
static boolean |
equal(Vertex v0,
Vertex v1,
Edge edge)
Returns whether the given vertices are equal to the ones of the given edge (in any order) |
static java.util.List<Edge> |
findAdjacent(java.lang.Iterable<? extends Edge> edges,
Edge edge)
Find all edges from the given sequence that are adjacent to the given edge |
static Vertex |
getAdjacent(Face face,
Edge edge)
Returns the vertex of the given face that is adjacent (but not incident) to the given edge. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean areAdjacent(Edge e0, Edge e1)
e0
- The fist edgee1
- The second edge
public static boolean containAdjacent(java.lang.Iterable<? extends Edge> edges0, java.lang.Iterable<? extends Edge> edges1)
edges0
- The first sequence of edgesedges1
- The second sequence of edges
public static boolean containsAdjacent(java.lang.Iterable<? extends Edge> edges, Edge edge)
edges
- The sequence of edgesedge
- The edge
public static java.util.List<Edge> findAdjacent(java.lang.Iterable<? extends Edge> edges, Edge edge)
edges
- The sequence of edgesedge
- The edge
public static Vertex getAdjacent(Face face, Edge edge)
null
if no such vertex exists.
face
- The faceedge
- The edge
null
public static boolean equal(Vertex v0, Vertex v1, Edge edge)
v0
- The first vertexv1
- The second vertexedge
- The edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |