src/main/java/de/javagl/geom/Shapes.java
/**
     * Interpolate between <code>c0</code> and <code>c1</code> according
     * to the given alpha value, and place the result in <code>c</code>.
     * This assumes that none of the arrays is <code>null</code>, and
     * that all arrays have the size <code>n</code>.
     * 
     * @param c0 The first values
     * @param c1 The second values
     * @param c The result
     * @param alpha The interpolation value, usually between 0.0 and 1.0
     * @param n The size of the arrays
     */
Interpolate between c0 and c1 according
to the given alpha value, and place the result in c.
This assumes that none of the arrays is null, and
that all arrays have the size n.


Interpolate between c0 and c1 according to the given alpha value and place the result in c . This assumes that none of the arrays is null and that all arrays have the size n .
private static void interpolate(
        double c0[], double c1[], double c[], double alpha, int n)
    {
        for (int i=0; i<n; i++)
        {
            c[i] = c0[i] + (c1[i]-c0[i]) * alpha;
        }
    }
private static void interpolate ( double c0 [ ] , double c1 [ ] , double c [ ] , double alpha , int n ) { for ( int i = 0 ; i < n ; i ++ ) { c [ i ] = c0 [ i ] + ( c1 [ i ] - c0 [ i ] ) * alpha ; } }
Interpolate between <code>c0</code> and <code>c1</code> according
 to the given alpha value, and place the result in <code>c</code>.
Interpolate between <code > c0< / code > and <code > c1< / code > according to the given alpha value and place the result in <code > c< / code > .