-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVertex.java
More file actions
45 lines (29 loc) · 720 Bytes
/
Vertex.java
File metadata and controls
45 lines (29 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import java.awt.Point;
import java.util.ArrayList;
public class Vertex
{
int simRadius = 15;
Point simPreviousLoc = new Point();
ArrayList<Vertex> neighbors = new ArrayList<Vertex>();
ArrayList<Edge> outEdges = new ArrayList<Edge>();
double val, simX, simY, simXVel, simYVel;
public Vertex()
{
simX = simY = simXVel = simYVel = val = 0;
}
public Vertex(double val)
{
this.val = val;
}
public Vertex(double simX, double simY)
{
this.simX = simX;
this.simY = simY;
}
public Vertex(double simX, double simY, double val)
{
this.simX = simX;
this.simY = simY;
this.val = val;
}
}