Edit and compile if you like:
\documentclass[border=2pt]{standalone}% Drawing\usepackage{tikz}% Tikz Library\usetikzlibrary{decorations.markings, calc, shapes.geometric, angles, quotes, shapes, calc}% Styles%% Incident Ray\tikzstyle{ray} = [%line width = 0.85,color = red,postaction = decorate, decoration={markings, mark=at position .52 with \arrow{stealth}}]%% Refracted Ray\tikzstyle{ray1} = [%line width = 0.85,color = red]%% Dashed\tikzstyle{vertical} = [%line width = 0.85,dashed]\usetikzlibrary{backgrounds}\begin{document}\begin{tikzpicture}[semic/.style args={#1,#2}{semicircle,minimum width=#1,draw,anchor=arc end,rotate=#2},outer sep=0pt,line width=.7pt]% Grid% \draw[dotted] (0,0) grid (10,10);% \foreach \i in {0,...,10}% {% \node at (-2ex,\i) {\i};% \node at (\i,-2ex) {\i};% }% Coordinates\coordinate (S) at (1,1.5);\coordinate (P) at (9,3);
Click to download: prism3.tex
Open in Overleaf: prism3.tex
This file is available on GitHub.
See more on the author page of Alexandros Tsagkaropolulos.