src/animation/Animator.js
function catmullRomInterpolateArray(
    p0, p1, p2, p3, t, t2, t3, out, arrDim
) {
    var len = p0.length;
    if (arrDim === 1) {
        for (var i = 0; i < len; i++) {
            out[i] = catmullRomInterpolate(
                p0[i], p1[i], p2[i], p3[i], t, t2, t3
            );
        }
    }
    else {
        var len2 = p0[0].length;
        for (var i = 0; i < len; i++) {
            for (var j = 0; j < len2; j++) {
                out[i][j] = catmullRomInterpolate(
                    p0[i][j], p1[i][j], p2[i][j], p3[i][j],
                    t, t2, t3
                );
            }
        }
    }
}
function catmullRomInterpolateArray(
    p0, p1, p2, p3, t, t2, t3, out, arrDim
) {
    var len = p0.length;
    if (arrDim === 1) {
        for (var i = 0; i < len; i++) {
            out[i] = catmullRomInterpolate(
                p0[i], p1[i], p2[i], p3[i], t, t2, t3
            );
        }
    }
    else {
        var len2 = p0[0].length;
        for (var i = 0; i < len; i++) {
            for (var j = 0; j < len2; j++) {
                out[i][j] = catmullRomInterpolate(
                    p0[i][j], p1[i][j], p2[i][j], p3[i][j],
                    t, t2, t3
                );
            }
        }
    }
}
function catmullRomInterpolateArray ( p0 , p1 , p2 , p3 , t , t2 , t3 , out , arrDim ) { var len = p0 . length ; if ( arrDim === 1 ) { for ( var i = 0 ; i < len ; i ++ ) { out [ i ] = catmullRomInterpolate ( p0 [ i ] , p1 [ i ] , p2 [ i ] , p3 [ i ] , t , t2 , t3 ) ; } } else { var len2 = p0 [ 0 ] . length ; for ( var i = 0 ; i < len ; i ++ ) { for ( var j = 0 ; j < len2 ; j ++ ) { out [ i ] [ j ] = catmullRomInterpolate ( p0 [ i ] [ j ] , p1 [ i ] [ j ] , p2 [ i ] [ j ] , p3 [ i ] [ j ] , t , t2 , t3 ) ; } } } }
Catmull Rom interpolate array
@param  {Array} p0
@param  {Array} p1
@param  {Array} p2
@param  {Array} p3
@param  {number} t
@param  {number} t2
@param  {number} t3
@param  {Array} out
@param  {number} arrDim
Catmull Rom interpolate array