Package WildMagic.LibGraphics.Detail
Class Edge
- java.lang.Object
-
- WildMagic.LibGraphics.Detail.Edge
-
- All Implemented Interfaces:
java.io.Serializable
public class Edge extends java.lang.Object implements java.io.Serializable
A representation of an edge for the vertex-edge-triangle table. This class stores the pair of vertex indices for the end points of the edge. The edgesand are considered to be identical. To simplify comparisons, the class stores the ordered indices. The class extends Object to obtain support for hashing into a map of edges. - See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
m_iV0
DOCUMENT ME!int
m_iV1
DOCUMENT ME!private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Edge(int iV0, int iV1)
Constructs an edge in the table.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object kObject)
Support for hashing into a map of edges.int
hashCode()
Support for hashing into a map of edges.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
m_iV0
public int m_iV0
DOCUMENT ME!
-
m_iV1
public int m_iV1
DOCUMENT ME!
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object kObject)
Support for hashing into a map of edges.- Overrides:
equals
in classjava.lang.Object
- Parameters:
kObject
- an edge for comparison to the current one- Returns:
- true iff the edges are identical. Because the class stores ordered indices, it is not necessary to use the more expensive test (V0 == other.V0 && V1 == other.V1) || (V0 == other.V1 && V1 == other.V0).
-
hashCode
public int hashCode()
Support for hashing into a map of edges.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- the hash key for the edge
-
-