src/third_party/specimenTools/lib/bower_components/Atem-Math-Tools/lib/hobby.js
/**
     * returns vectors for the absolute positions of the control points
     * used to be called hobby2cubic
     */
returns vectors for the absolute positions of the control points
used to be called hobby2cubic
returns vectors for the absolute positions of the control points used to be called hobby2cubic
function _tension2control(z0, dir0, alpha, beta, dir1, z1) {
        var d0, d1, uv, u, v;
        if(dir0 instanceof Vector || dir1 instanceof Vector)
            console.warn('It is deprecated to use Vectors for dir0 or dir1');
        d0 = (dir0 instanceof Vector) ? dir0.arg() : dir0;
        d1 = (dir1 instanceof Vector) ? dir1.arg() : dir1;
        uv = _tension2magnitude(z0, d0, alpha, beta, d1, z1);
        if(uv[0] !== undefined)
            u = Vector.fromPolar(uv[0], d0)['+'](z0);
        if(uv[1] !== undefined)
            v = z1['-'](Vector.fromPolar(uv[1], d1));
        return [u, v];
    }
function _tension2control ( z0 , dir0 , alpha , beta , dir1 , z1 ) { var d0 , d1 , uv , u , v ; if ( dir0 instanceof Vector || dir1 instanceof Vector ) console . warn ( 'It is deprecated to use Vectors for dir0 or dir1' ) ; d0 = ( dir0 instanceof Vector ) ? dir0 . arg ( ) : dir0 ; d1 = ( dir1 instanceof Vector ) ? dir1 . arg ( ) : dir1 ; uv = _tension2magnitude ( z0 , d0 , alpha , beta , d1 , z1 ) ; if ( uv [ 0 ] !== undefined ) u = Vector . fromPolar ( uv [ 0 ] , d0 ) [ '+' ] ( z0 ) ; if ( uv [ 1 ] !== undefined ) v = z1 [ '-' ] ( Vector . fromPolar ( uv [ 1 ] , d1 ) ) ; return [ u , v ] ; }
returns vectors for the absolute positions of the control points
 used to be called hobby2cubic
returns vectors for the absolute positions of the control points used to be called hobby2cubic
/*global console:true*/