Guest User

Untitled

a guest
Apr 24th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. documentclass[border=2mm,tikz]{standalone}
  2. usepackage{tikz}
  3. usetikzlibrary{arrows.meta,calc,intersections}
  4.  
  5. begin{document}
  6.  
  7. begin{tikzpicture}
  8.  
  9. draw[->] (-3,0,0) -- (3,0,0) node[below right] {$x$};
  10. draw[->] (0,-3,0) -- (0,3,0) node[above right] {$y$};
  11. draw[->] (0,0,-3) -- (0,0,3) node[below right] {$z$};
  12.  
  13. coordinate (o) at (0,0,0);
  14. coordinate (a) at (3.1,0,1.2);
  15.  
  16. draw[dashed] (a) -- (o);
  17.  
  18. path (a) -- coordinate[pos=0.32] (b) (o);
  19.  
  20. draw [thick,-{Straight Barb},orange] (a) -- ($(a)!1.2cm!90:(o)$) coordinate[label={[black]above left:c}] (c);
  21. draw[thick,-{Straight Barb},gray] (a) -- node[pos=0.7, below=0.35em] {b} (b);
  22. draw [thick,-{Straight Barb},red] (a) -- ([shift={(0,1.5,0)}]a) coordinate[label={[black]above right:d}] (d);
  23.  
  24. fill[blue!50,opacity=0.6] (c) rectangle (d);
  25.  
  26. end{tikzpicture}
  27.  
  28. end{document}
Add Comment
Please, Sign In to add comment