Public Member Functions | |
boolean | containsVertex (Vertex v) |
boolean | containsVertexInside (Vertex v) |
Edge () | |
Edge (Vertex position1, Vertex position2) | |
Vector3f | getEdgeValue () |
Vector3f | getInvertedEdgeValue () |
Vertex[] | getVerticesOfEdge () |
boolean | hasVertex (Vertex v) |
boolean | isCollinear (Edge edge) |
boolean | isDirectNeighbor (Edge nEdge) |
boolean | isEqualTo (Edge edge) |
boolean | isSharpEdge () |
void | isSharpEdge (final boolean value) |
void | setEdgeValue () |
void | setInvertedEdgeValue () |
void | setVerticesOfEdge (final Vertex position1, final Vertex position2) |
String | toString () |
Private Attributes | |
final Vector3f | edge = new Vector3f() |
final Vector3f | invertedEdge = new Vector3f() |
boolean | isSharpEdge = false |
final Vertex[] | vertices = new Vertex[2] |
Class which implements a 3D edge entity. An edge contains of two vertices and of its coordinate vector value.
edu.tum.cs.vis.model.util.Edge.Edge | ( | ) | [inline] |
edu.tum.cs.vis.model.util.Edge.Edge | ( | Vertex | position1, |
Vertex | position2 | ||
) | [inline] |
boolean edu.tum.cs.vis.model.util.Edge.containsVertex | ( | Vertex | v | ) | [inline] |
boolean edu.tum.cs.vis.model.util.Edge.containsVertexInside | ( | Vertex | v | ) | [inline] |
Checks if a vertex is inside the edge instance. This is checked taking in to consideration the two checking spheres of the vertices equality against other vertices. Thus a point is considered within the edge if it lies around the edge with a small tolerance and it is in between the boundaries of the two tolerance spheres enclosing the edge vertices.
v | vertex |
Vector3f edu.tum.cs.vis.model.util.Edge.getEdgeValue | ( | ) | [inline] |
Vector3f edu.tum.cs.vis.model.util.Edge.getInvertedEdgeValue | ( | ) | [inline] |
Vertex [] edu.tum.cs.vis.model.util.Edge.getVerticesOfEdge | ( | ) | [inline] |
boolean edu.tum.cs.vis.model.util.Edge.hasVertex | ( | Vertex | v | ) | [inline] |
Returns whether a vertex has the same coordinates with the one of the edge vertices. By same coordinates tolerance spheres of a fixed small radius around the edge vertices are considered for the comparisons, in order to allow some tolerance given the floating point numbers, see: edu.tum.cs.vis.model.util.Thresholds#DISTANCE_TOLERANCE and edu.tum.cs.vis.model.util.Vertex#sameCoordinates(javax.vecmath.Point3f)
v | vertex to be checked |
boolean edu.tum.cs.vis.model.util.Edge.isCollinear | ( | Edge | edge | ) | [inline] |
Checks if the current instance is has the same direction with the edge passed as argument. The edges' vectorial description are compared in this sense and depdending on their angle a decision is taken. Two edges are collinear (have same direction) if the angle between them is close to 0 or 180 with some tolerance level edu.tum.cs.vis.model.util.Thresholds#ANGLE_TOLERANCE
edge | to be checked |
boolean edu.tum.cs.vis.model.util.Edge.isDirectNeighbor | ( | Edge | nEdge | ) | [inline] |
Checks if the edge passed as an argument is a direct neighbor of the current edge instance. A direct neighbor is defined as an edge that has the same direction as the edge instance calling the method, and additionally, also has at least one vertex laying inside the edge instance (end vertices of this edge are excluded) or both end vertices coincide to the edge instance calling the method
nEdge | edge to be compared to the edge instance callign the method |
boolean edu.tum.cs.vis.model.util.Edge.isEqualTo | ( | Edge | edge | ) | [inline] |
boolean edu.tum.cs.vis.model.util.Edge.isSharpEdge | ( | ) | [inline] |
void edu.tum.cs.vis.model.util.Edge.isSharpEdge | ( | final boolean | value | ) | [inline] |
void edu.tum.cs.vis.model.util.Edge.setEdgeValue | ( | ) | [inline] |
void edu.tum.cs.vis.model.util.Edge.setInvertedEdgeValue | ( | ) | [inline] |
void edu.tum.cs.vis.model.util.Edge.setVerticesOfEdge | ( | final Vertex | position1, |
final Vertex | position2 | ||
) | [inline] |
String edu.tum.cs.vis.model.util.Edge.toString | ( | ) | [inline] |
final Vector3f edu.tum.cs.vis.model.util.Edge.edge = new Vector3f() [private] |
final Vector3f edu.tum.cs.vis.model.util.Edge.invertedEdge = new Vector3f() [private] |
boolean edu.tum.cs.vis.model.util.Edge.isSharpEdge = false [private] |
final Vertex [] edu.tum.cs.vis.model.util.Edge.vertices = new Vertex[2] [private] |