Guest User

Untitled

a guest
Mar 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{tikz}
  3. usetikzlibrary{
  4. calc,
  5. decorations.pathreplacing
  6. }
  7. begin{document}
  8.  
  9. begin{tikzpicture}[scale=1,
  10. interface/.style={
  11. postaction={draw,decorate,decoration={border,angle=45,
  12. amplitude=-3mm,segment length=2mm}}},
  13. ]
  14.  
  15. coordinate (O) at (0,0);
  16.  
  17. fill[gray!10, rounded corners=2pt] (-3,-0.2) rectangle (5,0.2);
  18. draw[black,line width=.5pt,interface](-3,0)--(5,0);
  19.  
  20. draw (O) node[xshift=-2mm, yshift=2mm] {$x_{0}$};
  21. draw [line width=1pt] (O) -- (1,0) node (y) {};
  22. filldraw[fill=white, line width=1pt] (1,0) circle(0.9mm) node[xshift=2mm, yshift=2mm]{$y_{0}$};
  23. draw[line width=1pt] (O) -- (0,1);
  24. filldraw[fill=white, line width=1pt] (0,1) circle(0.9mm) node[xshift=-2mm, yshift=2mm]{$z_{0}$};
  25.  
  26. node at (-2,0.75) {Real};
  27. node at (-2,-0.75) [yshift=-1mm] {Image};
  28.  
  29. defang{60}
  30. defL{13mm}
  31.  
  32. node at (3,1.25) (Pr) {-};
  33. node at ($(Pr)+(ang:L/2)$) (mur){};
  34.  
  35. node at (3,-1.25) (Pi) {-};
  36. node at ($(Pi)+(-ang:L/2)$) (mui){};
  37.  
  38.  
  39. % Real
  40. draw[gray](O) -- ($(Pr)+(ang:L/2)$) node[midway, above]{${r}$};
  41. draw ($(Pr)+(ang:L/2)$) node[left] {$x$};
  42. draw [line width=0.5pt] ($(Pr)+(ang:L/2)$) -- ++(ang-90:1);
  43. filldraw[fill=white, line width=0.5pt] ($(Pr)+(ang:L/2)+(ang-90:1)$) circle(0.9mm) node[right]{$y$};
  44. draw[line width=0.5pt] ($(Pr)+(ang:L/2)$) -- ++(ang:1);
  45. filldraw[fill=white, line width=0.5pt] ($(Pr)+(ang:L/2)+(ang:1)$) circle(0.9mm) node[above]{$z$};
  46.  
  47. draw[->, >=stealth, ultra thick, shorten >=1mm] (Pr) -- ++(ang:L) node (Pr2)[xshift=1mm, yshift=1mm]{+};
  48. draw[very thin] ($(mur)+({2.5mm*cos(90)},{2.5mm*sin(90)})$) arc (90:ang:2.5mm);
  49. draw[very thin, ->] ($(mur)+({2.5mm*cos(150)},{2.5mm*sin(150)})$) arc (150:90:2.5mm) node [xshift=-1.5mm, yshift=1.5mm] {$theta$};
  50. node at ($(Pr)+(ang:L/2)$) [xshift=3mm] {${mu}$};
  51.  
  52. filldraw[fill=white,line width=0.5pt]($(Pr)+(ang:L/2)$)circle(0.9mm);
  53. filldraw[fill=black,line width=0.25pt]($(Pr)+(ang:L/2)$)circle(.25mm);
  54.  
  55. % Image
  56. draw[gray](O) -- ($(Pi)+(-ang:L/2)$) node[midway, below]{${r^{prime}}$};
  57. draw ($(Pi)+(-ang:L/2)$) node[left] {$x^{prime}$};
  58. draw [line width=0.5pt] ($(Pi)+(-ang:L/2)$) -- ++(-ang+90:1);
  59. filldraw[fill=white, line width=0.5pt] ($(Pi)+(-ang:L/2)+(-ang+90:1)$) circle(0.9mm) node[xshift=3mm, yshift=1mm]{$y^{prime}$};
  60. draw[line width=0.5pt] ($(Pi)+(-ang:L/2)$) -- ++(-ang:1);
  61. filldraw[fill=white, line width=0.5pt] ($(Pi)+(-ang:L/2)+(-ang:1)$) circle(0.9mm) node[xshift=2mm, yshift=-2mm]{$z^{prime}$};
  62.  
  63. draw[->, >=stealth, ultra thick, shorten >=1mm] (Pi) -- ++(-ang:L) node (Pi2)[xshift=1mm, yshift=-1mm]{+};
  64. draw[very thin] ($(mui)+({2.5mm*cos(-90)},{2.5mm*sin(-90)})$) arc (-90:-ang:2.5mm);
  65. draw[very thin, ->] ($(mui)+({2.5mm*cos(-150)},{2.5mm*sin(-150)})$) arc (-150:-90:2.5mm) node [xshift=-1.5mm, yshift=-1.5mm] {$theta$};
  66. node at ($(Pi)+(-ang:L/2)$) [xshift=3.5mm] {${mu^{prime}}$};
  67.  
  68. filldraw[fill=white,line width=0.5pt]($(Pi)+(-ang:L/2)$)circle(0.9mm);
  69. filldraw[fill=black,line width=0.25pt]($(Pi)+(-ang:L/2)$)circle(.25mm);
  70.  
  71. % Projection
  72. draw[dashed, very thin] (mur) -- ($(O)!(mur)!(y)$) node[below](mux) {};
  73. draw[ultra thin] (mur) -- ($(mur)+(0,0.4)$);
  74.  
  75. draw[dashed, very thin] (mui) -- ($(O)!(mui)!(y)$);
  76. draw[ultra thin] (mui) -- ($(mui)+(0,-0.4)$);
  77.  
  78.  
  79. filldraw[fill=white,line width=1pt](O)circle(0.9mm);
  80. filldraw[fill=black,line width=0.5pt](O)circle(.25mm);
  81.  
  82.  
  83. end{tikzpicture}
  84.  
  85. end{document}
Add Comment
Please, Sign In to add comment