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;
}
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.
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
add a comment |
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.
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
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
add a comment |
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.
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
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.
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
tikz-pgf
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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}
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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}
add a comment |
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}
add a comment |
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}
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}
answered 6 hours ago
Schrödinger's catSchrödinger's cat
3,9316 silver badges16 bronze badges
3,9316 silver badges16 bronze badges
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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