-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNode.pde
More file actions
35 lines (28 loc) · 667 Bytes
/
Copy pathNode.pde
File metadata and controls
35 lines (28 loc) · 667 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
class Node {
PVector startLoc;
PVector endLoc;
PVector currentLoc;
public Node(PVector startLoc, PVector endLoc) {
this.startLoc = startLoc;
this.currentLoc = startLoc;
this.endLoc = endLoc;
}
public void setStartLoc(PVector startLoc) {
this.startLoc = startLoc;
}
public void setEndLoc(PVector endLoc) {
this.endLoc = endLoc;
}
public void setCurrentLoc(PVector currentLoc) {
this.currentLoc = currentLoc;
}
public PVector getStartLoc() {
return this.startLoc;
}
public PVector getEndLoc() {
return this.endLoc;
}
public PVector getCurrentLoc() {
return this.currentLoc;
}
}