edu.jhu.ece.iacl.jist.structures.geom
Class Vertex

java.lang.Object
  extended by Point3f
      extended by edu.jhu.ece.iacl.jist.structures.geom.Point3
          extended by edu.jhu.ece.iacl.jist.structures.geom.Vertex
All Implemented Interfaces:
java.lang.Comparable<Vertex>

public class Vertex
extends Point3
implements java.lang.Comparable<Vertex>

The Class Vertex.


Field Summary
 java.util.ArrayList<Edge> edges
          The edges.
 int index
          The index.
 
Constructor Summary
Vertex()
          Instantiates a new vertex.
Vertex(double[] d)
          Instantiates a new vertex.
Vertex(double x, double y, double z)
          Instantiates a new vertex.
Vertex(float x, float y, float z)
          Instantiates a new vertex.
Vertex(Point3 p)
          Instantiates a new vertex.
 
Method Summary
 void add(Edge e)
          Adds the.
 int compareTo(Vertex v)
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

edges

public java.util.ArrayList<Edge> edges
The edges.


index

public int index
The index.

Constructor Detail

Vertex

public Vertex()
Instantiates a new vertex.


Vertex

public Vertex(Point3 p)
Instantiates a new vertex.

Parameters:
p - the p

Vertex

public Vertex(double x,
              double y,
              double z)
Instantiates a new vertex.

Parameters:
x - the x
y - the y
z - the z

Vertex

public Vertex(float x,
              float y,
              float z)
Instantiates a new vertex.

Parameters:
x - the x
y - the y
z - the z

Vertex

public Vertex(double[] d)
Instantiates a new vertex.

Parameters:
d - the d
Method Detail

add

public void add(Edge e)
Adds the.

Parameters:
e - the e

hashCode

public int hashCode()

compareTo

public int compareTo(Vertex v)

equals

public boolean equals(java.lang.Object obj)

toString

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