File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/main/java/com/github/mittyrobotics/pathfollowing Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 5
5
public class QuinticHermiteSplineGroup extends Parametric {
6
6
7
7
//list of splines
8
- ArrayList <QuinticHermiteSpline > splines = new ArrayList <>();
8
+ private ArrayList <QuinticHermiteSpline > splines = new ArrayList <>();
9
9
10
10
/**
11
11
* Creates a new spline group with an initial {@link QuinticHermiteSpline}
@@ -16,6 +16,17 @@ public QuinticHermiteSplineGroup(QuinticHermiteSpline initialSpline) {
16
16
splines .add (initialSpline );
17
17
}
18
18
19
+ /**
20
+ * Creates a new spline group with an initial {@link ArrayList} of {@link QuinticHermiteSpline}s
21
+ * @param splines initial {@link ArrayList} of {@link QuinticHermiteSpline}s
22
+ */
23
+ public QuinticHermiteSplineGroup (ArrayList <QuinticHermiteSpline > splines ) {
24
+ this .splines = splines ;
25
+ for (QuinticHermiteSpline spline : splines ) {
26
+ length += spline .getLength ();
27
+ }
28
+ }
29
+
19
30
/**
20
31
* Creates a new empty spline group
21
32
*/
You can’t perform that action at this time.
0 commit comments