%% examples/optics-components.tex
%%
%% Complete gallery of the optical components in tikzphysics.optics.

\documentclass[tikz, border=6mm]{standalone}
\usepackage{tikzphysics}

\begin{document}
\begin{tikzpicture}[font=\small]
  \begin{scope}[xshift=2.15cm]
    \draw[->] (-1.8,0) -- (1.8,0);
    \node[concave-mirror, mirror radius=4cm,
          mirror thickness=0.22cm,
          mirror aperture angle=24] (M1) at (0,0) {};
    \node[below=5pt] at (M1.south) {\texttt{concave-mirror}};
  \end{scope}

  \begin{scope}[xshift=6.45cm]
    \draw[->] (-1.8,0) -- (1.8,0);
    \node[convex-mirror, mirror radius=4cm,
          mirror thickness=0.22cm,
          mirror aperture angle=24] (M2) at (0,0) {};
    \node[below=5pt] at (M2.south) {\texttt{convex-mirror}};
  \end{scope}

  \begin{scope}[xshift=0cm,yshift=-5cm]
    \draw[->] (-1.8,0) -- (1.8,0);
    \node[convex-lens, convex lens radius=4cm,
          convex lens thickness=0.18cm,
          convex lens aperture angle=22] (C) at (0,0) {};
    \node[below=5pt] at (C.south) {\texttt{convex-lens}};
  \end{scope}

  \begin{scope}[xshift=4.3cm,yshift=-5cm]
    \draw[->] (-1.8,0) -- (1.8,0);
    \node[concave-lens, concave lens radius=4cm,
          concave lens thickness=0.18cm,
          concave lens aperture angle=22] (D) at (0,0) {};
    \node[below=5pt] at (D.south) {\texttt{concave-lens}};
  \end{scope}

  \begin{scope}[xshift=8.6cm,yshift=-5cm]
    \draw[->] (-1.8,0) -- (1.8,0);
    \node[slab, minimum width=1cm, minimum height=2.8cm]
      (S) at (0,0) {};
    \node[below=5pt] at (S.south) {\texttt{slab}};
  \end{scope}

  \begin{scope}[xshift=12.9cm,yshift=-5cm]
    \draw[->] (-1.8,0) -- (1.8,0);
    \node[prism, prism width=2.8cm, prism apex angle=60]
      (P) at (0,0) {};
    \node[below=5pt] at (P.south) {\texttt{prism}};
  \end{scope}
\end{tikzpicture}
\end{document}
