src/test/java/org/a05annex/util/geo2d/TestSpline.java
@Test
    @DisplayName("Verify intermediate-derivative")
    void testSet1_verifyIntermediateDerivative() {
        KochanekBartelsSpline.ControlPoint intermediateControlPoint = null;
        for (KochanekBartelsSpline.ControlPoint controlPoint : m_startEndDerivativeTest.getControlPoints()) {
            if (null != intermediateControlPoint) {
                intermediateControlPoint = controlPoint;
                break;
            }
            intermediateControlPoint = controlPoint;
        }
        assertEquals(0.0, intermediateControlPoint.m_dX);
        assertEquals(0.0, intermediateControlPoint.m_dY);
    }
/**
     * Since all control points are coincident, the intermediate derivative should be 0.0
     */
Since all control points are coincident, the intermediate derivative should be 0.0
Since all control points are coincident the intermediate derivative should be 0 . 0
@Test
    @DisplayName("Verify intermediate-derivative")
    void testSet1_verifyIntermediateDerivative() {
        KochanekBartelsSpline.ControlPoint intermediateControlPoint = null;
        for (KochanekBartelsSpline.ControlPoint controlPoint : m_startEndDerivativeTest.getControlPoints()) {
            if (null != intermediateControlPoint) {
                intermediateControlPoint = controlPoint;
                break;
            }
            intermediateControlPoint = controlPoint;
        }
        assertEquals(0.0, intermediateControlPoint.m_dX);
        assertEquals(0.0, intermediateControlPoint.m_dY);
    }
@ Test @ DisplayName ( "Verify intermediate-derivative" ) void testSet1_verifyIntermediateDerivative ( ) { KochanekBartelsSpline . ControlPoint intermediateControlPoint = null ; for ( KochanekBartelsSpline . ControlPoint controlPoint : m_startEndDerivativeTest . getControlPoints ( ) ) { if ( null != intermediateControlPoint ) { intermediateControlPoint = controlPoint ; break ; } intermediateControlPoint = controlPoint ; } assertEquals ( 0.0 , intermediateControlPoint . m_dX ) ; assertEquals ( 0.0 , intermediateControlPoint . m_dY ) ; }
Since all control points are coincident, the intermediate derivative should be 0.0
Since all control points are coincident the intermediate derivative should be 0 . 0