package utils public class Point public double public Point public Poi

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package utils;
public class Point {
public double x, y;
public Point(){};
public Point(double X, double Y){
x = X;
y = Y;
};
}
public class Spline {
public double a, b, c, d, x;
public Spline(){};
public double calc(double arg) {
return a +
b*(arg-x) +
c*(arg-x)*(arg-x) +
d*(arg-x)*(arg-x)*(arg-x);
}
}