private static Spline createLinear() {
        List<Vector3f> controlPoints4 = new ArrayList<>(3);
        controlPoints4.add(new Vector3f(3f, -1f, 4f));
        controlPoints4.add(new Vector3f(2f, 0f, 3f));
        controlPoints4.add(new Vector3f(3f, -2f, 3f));

        Spline result = new Spline(
                Spline.SplineType.Linear, controlPoints4, 0f, true);
        return result;
    }
Generates a simple cyclic linear spline for testing.

@return a new Spline
jme3-core/src/test/java/com/jme3/math/SplineTest.java