Files
50ohm-contents-dl/contents/drawings/844.tex
T

29 lines
1.0 KiB
TeX

% Author: Michael Groni, DB7YI und Matthias Jung, DL9MJ
% Year: 2024
% TDMA für Klasse E
\def\simplecuboid#1#2#3#4#5{ % #1=t #2=f #3=P #4 = color #5 = deltaX
\fill[#4!70!white] ( 0+#5,#2, 0) -- (#1+#5,#2, 0) -- (#1+#5,#2,#3) -- ( 0+#5,#2,#3) -- cycle;
\fill[#4] ( 0+#5,#2,#3) -- (#1+#5,#2,#3) -- (#1+#5, 0,#3) -- ( 0+#5, 0,#3) -- cycle;
\fill[#4!60!white] (#1+#5,#2,#3) -- (#1+#5,#2, 0) -- (#1+#5, 0, 0) -- (#1+#5, 0,#3) -- cycle;
}
\def\simpleaxes#1#2#3{
\draw[-Triangle] (0,0,0) -- (#1,0,0) node[anchor=west]{$t$};
\draw[-Triangle] (0,0,0) -- (0,#2,0) node[anchor=south]{$f$};
\draw[-Triangle] (0,0,0) -- (0,0,#3) node[anchor=north east]{$P$};
}
\def\dashedaxes#1#2#3{
\draw[dashed] (0,0,0) -- (#1,0,0);
\draw[dashed] (0,0,0) -- (0,#2,0);
\draw[dashed] (0,0,0) -- (0,0,#3);
}
\begin{tikzpicture}
\simpleaxes{3.4}{3.4}{3.7}
\simplecuboid{1}{3}{3}{DARCorange}{0}
\simplecuboid{1}{3}{3}{DARCgray}{1}
\simplecuboid{1}{3}{3}{DARCblue}{2}
%\dashedaxes{3}{3}{3}
\end{tikzpicture}