}
    else if (inputMode ==5)
    {
        var m = new THREE.Matrix4();
        var P = getVector("P");
        var Q = getVector("Q");
        var R = getVector("R");
        var x = new THREE.Vector3();
        var y = new THREE.Vector3();
        var z = new THREE.Vector3();
        x.subVectors(Q, P).normalize();
        y.subVectors(R, P);
        z.crossVectors(x, y).normalize();
        y.crossVectors(z, x).normalize();
        m.set(x.x, y.x, z.x, 1, x.y, y.y, z.y, 1, x.z, y.z, z.z, 1, 0, 0, 0, 1);