-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathPaths64.java
More file actions
40 lines (32 loc) · 764 Bytes
/
Paths64.java
File metadata and controls
40 lines (32 loc) · 764 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
package clipper2.core;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* Paths64 represent one or more Path64 structures. While a single path can
* represent a simple polygon, multiple paths are usually required to define
* complex polygons that contain one or more holes.
*/
@SuppressWarnings("serial")
public class Paths64 extends ArrayList<Path64> {
public Paths64() {
super();
}
public Paths64(int n) {
super(n);
}
public Paths64(List<Path64> paths) {
super(paths);
}
public Paths64(Path64... paths) {
super(Arrays.asList(paths));
}
@Override
public String toString() {
StringBuilder s = new StringBuilder();
for (Path64 p : this) {
s.append(p).append("\n");
}
return s.toString();
}
}