edu.jhu.ece.iacl.jist.structures.geom
Class EmbeddedSurface.Edge

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.structures.geom.EmbeddedSurface.Edge
All Implemented Interfaces:
java.lang.Comparable<EmbeddedSurface.Edge>
Direct Known Subclasses:
EmbeddedSurface.EdgeSplit
Enclosing class:
EmbeddedSurface

public static class EmbeddedSurface.Edge
extends java.lang.Object
implements java.lang.Comparable<EmbeddedSurface.Edge>

The Class Edge.


Field Summary
 int f1
          The f2.
 int f2
          The f2.
 int id
          The id.
 int v1
          The v2.
 int v2
          The v2.
 
Constructor Summary
EmbeddedSurface.Edge(int v1, int v2, int id)
          Instantiates a new edge.
 
Method Summary
 int compareTo(EmbeddedSurface.Edge e)
           
 boolean contains(int v)
          Contains.
 boolean equals(int v1, int v2)
          Equals.
 boolean equals(java.lang.Object obj)
           
 Vector3f getVector(EmbeddedSurface surf)
          Gets the vector.
 long hashCodeLong()
          Hash code long.
static long hashCodeLong(int v1, int v2)
          Hash code long.
 int opposite(int v)
          Opposite.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

v1

public int v1
The v2.


v2

public int v2
The v2.


f1

public int f1
The f2.


f2

public int f2
The f2.


id

public int id
The id.

Constructor Detail

EmbeddedSurface.Edge

public EmbeddedSurface.Edge(int v1,
                            int v2,
                            int id)
Instantiates a new edge.

Parameters:
v1 - the v1
v2 - the v2
id - the id
Method Detail

hashCodeLong

public static long hashCodeLong(int v1,
                                int v2)
Hash code long.

Parameters:
v1 - the v1
v2 - the v2
Returns:
the long

compareTo

public int compareTo(EmbeddedSurface.Edge e)
Specified by:
compareTo in interface java.lang.Comparable<EmbeddedSurface.Edge>

contains

public boolean contains(int v)
Contains.

Parameters:
v - the v
Returns:
true, if successful

equals

public boolean equals(int v1,
                      int v2)
Equals.

Parameters:
v1 - the v1
v2 - the v2
Returns:
true, if successful

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getVector

public Vector3f getVector(EmbeddedSurface surf)
Gets the vector.

Parameters:
surf - the surf
Returns:
the vector

hashCodeLong

public long hashCodeLong()
Hash code long.

Returns:
the long

opposite

public int opposite(int v)
Opposite.

Parameters:
v - the v
Returns:
the int

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object