extending lines in 3d graphHow to draw inside a TikZ node, using node style?Make tikzpicture white on...

What are the French equivalents of "blow away the cobwebs"?

meaning of "educating the ice"?

Using font to highlight a god's speech in dialogue

Can a human variant take proficiency in initiative?

Am I required to correct my opponent's assumptions about my morph creatures?

Why do fuses burn at a specific current?

Can users with the same $HOME have separate bash histories?

How to encrypt the .viminfo file and still get Vim to read it?

Received email from ISP saying one of my devices has malware

Displaying Time in HH:MM Format

Can UV radiation be safe for the skin?

What are the electrical characteristics of a PC gameport?

What is the maximal acceptable delay between pilot's input and flight control surface actuation?

How to have the "Restore Missing Files" function from Nautilus without installing Nautilus?

Why are direct proofs often considered better than indirect proofs?

Is Chuck the Evil Sandwich Making Guy's head actually a sandwich?

How can I portray a character with no fear of death, without them sounding utterly bored?

How to run a command 1 out of N times in Bash

Heuristic argument for the Riemann Hypothesis

How to find better food in airports

extending lines in 3d graph

Why didn't Thatcher give Hong Kong to Taiwan?

How did Gollum know Sauron was gathering the Haradrim to make war?

Why is it hard for a neural network to learn the identity function?



extending lines in 3d graph


How to draw inside a TikZ node, using node style?Make tikzpicture white on blackUse of overlay command in a graphTikZ: Drawing an arc from an intersection to an intersectionRelative transparency in TikZ?Line up nested tikz enviroments or how to get rid of themtikz and pgfdeclareshape why the text is not at the center anchor?How to draw a vector in a 3D spaceAutomatically find which nodes are closest, to aid drawing lines within a TikZ matrixTikz image within a defined box (& the textpos package)






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















How can I extend the two lines I have through this 3d graph? Kind of like this picture, where the red lines would be dotted lines showing the line going through the two points. I thought I could simply multiply both values by a scalar vector, but it didn't work.
enter image description here



documentclass{article}
usepackage[margin=1in]{geometry}
usepackage{tikz, tikz-3dplot}
usepackage{amsmath}
begin{document}
tdplotsetmaincoords{75}{135}
begin{tikzpicture} [scale=1.1, tdplot_main_coords, axis/.style={->,black,thick},
vector/.style={-stealth,black,very thick},
vector guide/.style={dashed,black,thick}]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);

%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]{$z$};

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]{$a=(-3,0,1)$};
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]{$b=(0,1,2)$};
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]{$c=(2,-1,1)$};
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]{$d=(1,2,0)$};

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]{$ta + b$};
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]{$tc + d$};
end{tikzpicture}
end{document}









share|improve this question

























  • The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

    – Schrödinger's cat
    7 hours ago


















2















How can I extend the two lines I have through this 3d graph? Kind of like this picture, where the red lines would be dotted lines showing the line going through the two points. I thought I could simply multiply both values by a scalar vector, but it didn't work.
enter image description here



documentclass{article}
usepackage[margin=1in]{geometry}
usepackage{tikz, tikz-3dplot}
usepackage{amsmath}
begin{document}
tdplotsetmaincoords{75}{135}
begin{tikzpicture} [scale=1.1, tdplot_main_coords, axis/.style={->,black,thick},
vector/.style={-stealth,black,very thick},
vector guide/.style={dashed,black,thick}]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);

%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]{$z$};

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]{$a=(-3,0,1)$};
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]{$b=(0,1,2)$};
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]{$c=(2,-1,1)$};
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]{$d=(1,2,0)$};

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]{$ta + b$};
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]{$tc + d$};
end{tikzpicture}
end{document}









share|improve this question

























  • The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

    – Schrödinger's cat
    7 hours ago














2












2








2


1






How can I extend the two lines I have through this 3d graph? Kind of like this picture, where the red lines would be dotted lines showing the line going through the two points. I thought I could simply multiply both values by a scalar vector, but it didn't work.
enter image description here



documentclass{article}
usepackage[margin=1in]{geometry}
usepackage{tikz, tikz-3dplot}
usepackage{amsmath}
begin{document}
tdplotsetmaincoords{75}{135}
begin{tikzpicture} [scale=1.1, tdplot_main_coords, axis/.style={->,black,thick},
vector/.style={-stealth,black,very thick},
vector guide/.style={dashed,black,thick}]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);

%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]{$z$};

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]{$a=(-3,0,1)$};
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]{$b=(0,1,2)$};
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]{$c=(2,-1,1)$};
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]{$d=(1,2,0)$};

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]{$ta + b$};
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]{$tc + d$};
end{tikzpicture}
end{document}









share|improve this question














How can I extend the two lines I have through this 3d graph? Kind of like this picture, where the red lines would be dotted lines showing the line going through the two points. I thought I could simply multiply both values by a scalar vector, but it didn't work.
enter image description here



documentclass{article}
usepackage[margin=1in]{geometry}
usepackage{tikz, tikz-3dplot}
usepackage{amsmath}
begin{document}
tdplotsetmaincoords{75}{135}
begin{tikzpicture} [scale=1.1, tdplot_main_coords, axis/.style={->,black,thick},
vector/.style={-stealth,black,very thick},
vector guide/.style={dashed,black,thick}]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);

%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]{$z$};

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]{$a=(-3,0,1)$};
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]{$b=(0,1,2)$};
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]{$c=(2,-1,1)$};
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]{$d=(1,2,0)$};

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]{$ta + b$};
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]{$tc + d$};
end{tikzpicture}
end{document}






tikz-pgf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 8 hours ago









Evan KimEvan Kim

2245 bronze badges




2245 bronze badges
















  • The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

    – Schrödinger's cat
    7 hours ago



















  • The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

    – Schrödinger's cat
    7 hours ago

















The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

– Schrödinger's cat
7 hours ago





The continuation of a line in 3D is still a line, so you can make the lines longer with’shorten=<something negative>’.

– Schrödinger's cat
7 hours ago










1 Answer
1






active

oldest

votes


















4















You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


draws from c to c plus 0.5 times c-d. This and further examples are contained in



documentclass{article}
usepackage[margin=1in]{geometry}
usepackage{tikz, tikz-3dplot}
usepackage{amsmath}
begin{document}
tdplotsetmaincoords{75}{135}
begin{tikzpicture}[scale=1.1, tdplot_main_coords, axis/.style={->,black,thick},
vector/.style={-stealth,black,very thick},
vector guide/.style={dashed,black,thick},
vector extension/.style={densely dashed,red,-stealth}]

%standard tikz coordinate definition using x, y, z coords
coordinate (origin) at (0,0,0);
coordinate (a) at (-3,0,1);
coordinate (b) at (0,1,2);
coordinate (c) at (2,-1,1);
coordinate (d) at (1,2,0);
draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
%draw axes
draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]{$z$};

% Draw two points
draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]{$a=(-3,0,1)$};
draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]{$b=(0,1,2)$};
draw[fill=black] (c) circle[radius=2pt] node[anchor=south]{$c=(2,-1,1)$};
draw[fill=black] (d) circle[radius=2pt] node[anchor=north]{$d=(1,2,0)$};

%draw guide lines to components
draw[vector guide] (origin) -- (a);
draw[vector guide] (origin) -- (b);
draw[vector guide] (origin) -- (c);
draw[vector guide] (origin) -- (d);

% Draw parametric lines
draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]{$ta + b$};
draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]{$tc + d$};
end{tikzpicture}
end{document}


enter image description here






share|improve this answer




























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f506605%2fextending-lines-in-3d-graph%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    4















    You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



    draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


    draws from c to c plus 0.5 times c-d. This and further examples are contained in



    documentclass{article}
    usepackage[margin=1in]{geometry}
    usepackage{tikz, tikz-3dplot}
    usepackage{amsmath}
    begin{document}
    tdplotsetmaincoords{75}{135}
    begin{tikzpicture}[scale=1.1, tdplot_main_coords, axis/.style={->,black,thick},
    vector/.style={-stealth,black,very thick},
    vector guide/.style={dashed,black,thick},
    vector extension/.style={densely dashed,red,-stealth}]

    %standard tikz coordinate definition using x, y, z coords
    coordinate (origin) at (0,0,0);
    coordinate (a) at (-3,0,1);
    coordinate (b) at (0,1,2);
    coordinate (c) at (2,-1,1);
    coordinate (d) at (1,2,0);
    draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
    draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
    draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
    draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
    %draw axes
    draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
    draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
    draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]{$z$};

    % Draw two points
    draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]{$a=(-3,0,1)$};
    draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]{$b=(0,1,2)$};
    draw[fill=black] (c) circle[radius=2pt] node[anchor=south]{$c=(2,-1,1)$};
    draw[fill=black] (d) circle[radius=2pt] node[anchor=north]{$d=(1,2,0)$};

    %draw guide lines to components
    draw[vector guide] (origin) -- (a);
    draw[vector guide] (origin) -- (b);
    draw[vector guide] (origin) -- (c);
    draw[vector guide] (origin) -- (d);

    % Draw parametric lines
    draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]{$ta + b$};
    draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]{$tc + d$};
    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer






























      4















      You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



      draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


      draws from c to c plus 0.5 times c-d. This and further examples are contained in



      documentclass{article}
      usepackage[margin=1in]{geometry}
      usepackage{tikz, tikz-3dplot}
      usepackage{amsmath}
      begin{document}
      tdplotsetmaincoords{75}{135}
      begin{tikzpicture}[scale=1.1, tdplot_main_coords, axis/.style={->,black,thick},
      vector/.style={-stealth,black,very thick},
      vector guide/.style={dashed,black,thick},
      vector extension/.style={densely dashed,red,-stealth}]

      %standard tikz coordinate definition using x, y, z coords
      coordinate (origin) at (0,0,0);
      coordinate (a) at (-3,0,1);
      coordinate (b) at (0,1,2);
      coordinate (c) at (2,-1,1);
      coordinate (d) at (1,2,0);
      draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
      draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
      draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
      draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
      %draw axes
      draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
      draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
      draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]{$z$};

      % Draw two points
      draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]{$a=(-3,0,1)$};
      draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]{$b=(0,1,2)$};
      draw[fill=black] (c) circle[radius=2pt] node[anchor=south]{$c=(2,-1,1)$};
      draw[fill=black] (d) circle[radius=2pt] node[anchor=north]{$d=(1,2,0)$};

      %draw guide lines to components
      draw[vector guide] (origin) -- (a);
      draw[vector guide] (origin) -- (b);
      draw[vector guide] (origin) -- (c);
      draw[vector guide] (origin) -- (d);

      % Draw parametric lines
      draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]{$ta + b$};
      draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]{$tc + d$};
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer




























        4














        4










        4









        You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



        draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


        draws from c to c plus 0.5 times c-d. This and further examples are contained in



        documentclass{article}
        usepackage[margin=1in]{geometry}
        usepackage{tikz, tikz-3dplot}
        usepackage{amsmath}
        begin{document}
        tdplotsetmaincoords{75}{135}
        begin{tikzpicture}[scale=1.1, tdplot_main_coords, axis/.style={->,black,thick},
        vector/.style={-stealth,black,very thick},
        vector guide/.style={dashed,black,thick},
        vector extension/.style={densely dashed,red,-stealth}]

        %standard tikz coordinate definition using x, y, z coords
        coordinate (origin) at (0,0,0);
        coordinate (a) at (-3,0,1);
        coordinate (b) at (0,1,2);
        coordinate (c) at (2,-1,1);
        coordinate (d) at (1,2,0);
        draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
        draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
        draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
        draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
        %draw axes
        draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
        draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
        draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]{$z$};

        % Draw two points
        draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]{$a=(-3,0,1)$};
        draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]{$b=(0,1,2)$};
        draw[fill=black] (c) circle[radius=2pt] node[anchor=south]{$c=(2,-1,1)$};
        draw[fill=black] (d) circle[radius=2pt] node[anchor=north]{$d=(1,2,0)$};

        %draw guide lines to components
        draw[vector guide] (origin) -- (a);
        draw[vector guide] (origin) -- (b);
        draw[vector guide] (origin) -- (c);
        draw[vector guide] (origin) -- (d);

        % Draw parametric lines
        draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]{$ta + b$};
        draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]{$tc + d$};
        end{tikzpicture}
        end{document}


        enter image description here






        share|improve this answer













        You can add a some multiple of vectors using the calc library, which gets auto-loaded with tikz-3dplot. E.g.



        draw (c) -- ($(c)+0.5*($(c)-(d)$)$);


        draws from c to c plus 0.5 times c-d. This and further examples are contained in



        documentclass{article}
        usepackage[margin=1in]{geometry}
        usepackage{tikz, tikz-3dplot}
        usepackage{amsmath}
        begin{document}
        tdplotsetmaincoords{75}{135}
        begin{tikzpicture}[scale=1.1, tdplot_main_coords, axis/.style={->,black,thick},
        vector/.style={-stealth,black,very thick},
        vector guide/.style={dashed,black,thick},
        vector extension/.style={densely dashed,red,-stealth}]

        %standard tikz coordinate definition using x, y, z coords
        coordinate (origin) at (0,0,0);
        coordinate (a) at (-3,0,1);
        coordinate (b) at (0,1,2);
        coordinate (c) at (2,-1,1);
        coordinate (d) at (1,2,0);
        draw[vector extension] (c) -- ($(c)+0.5*($(c)-(d)$)$);
        draw[vector extension] (d) -- ($(d)+0.5*($(d)-(c)$)$);
        draw[vector extension] (a) -- ($(a)+0.5*($(a)-(b)$)$);
        draw[vector extension] (b) -- ($(b)+0.5*($(b)-(a)$)$);
        %draw axes
        draw[axis] (0,0,0) -- (4,0,0) node[anchor=north east]{$x$};
        draw[axis] (0,0,0) -- (0,4,0) node[anchor=north west]{$y$};
        draw[axis] (0,0,0) -- (0,0,4) node[anchor=south]{$z$};

        % Draw two points
        draw[fill=black] (a) circle[radius=2pt] node[anchor=north west]{$a=(-3,0,1)$};
        draw[fill=black] (b) circle[radius=2pt] node[anchor=south west]{$b=(0,1,2)$};
        draw[fill=black] (c) circle[radius=2pt] node[anchor=south]{$c=(2,-1,1)$};
        draw[fill=black] (d) circle[radius=2pt] node[anchor=north]{$d=(1,2,0)$};

        %draw guide lines to components
        draw[vector guide] (origin) -- (a);
        draw[vector guide] (origin) -- (b);
        draw[vector guide] (origin) -- (c);
        draw[vector guide] (origin) -- (d);

        % Draw parametric lines
        draw[line width=1pt] (a) -- (b) node[yshift=0.5cm, anchor=south]{$ta + b$};
        draw[line width=1pt] (c) -- (d) node[yshift=0.5cm, anchor=south]{$tc + d$};
        end{tikzpicture}
        end{document}


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 6 hours ago









        Schrödinger's catSchrödinger's cat

        3,9316 silver badges16 bronze badges




        3,9316 silver badges16 bronze badges

































            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f506605%2fextending-lines-in-3d-graph%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

            Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

            Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m