Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[border=2mm,tikz]{standalone}
- usepackage{tikz}
- usetikzlibrary{arrows.meta,calc,intersections}
- begin{document}
- begin{tikzpicture}
- draw[->] (-3,0,0) -- (3,0,0) node[below right] {$x$};
- draw[->] (0,-3,0) -- (0,3,0) node[above right] {$y$};
- draw[->] (0,0,-3) -- (0,0,3) node[below right] {$z$};
- coordinate (o) at (0,0,0);
- coordinate (a) at (3.1,0,1.2);
- draw[dashed] (a) -- (o);
- path (a) -- coordinate[pos=0.32] (b) (o);
- draw [thick,-{Straight Barb},orange] (a) -- ($(a)!1.2cm!90:(o)$) coordinate[label={[black]above left:c}] (c);
- draw[thick,-{Straight Barb},gray] (a) -- node[pos=0.7, below=0.35em] {b} (b);
- draw [thick,-{Straight Barb},red] (a) -- ([shift={(0,1.5,0)}]a) coordinate[label={[black]above right:d}] (d);
- fill[blue!50,opacity=0.6] (c) rectangle (d);
- end{tikzpicture}
- end{document}
Add Comment
Please, Sign In to add comment