Use \pgfmathtruncatemacro
to calculate the value and truncate it (1.0
→ 1
).
Code
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\foreach \x [count=\xi from 1] in {-3.0,-2.8,...,1.8}
\draw[thin] (0,0) ++(\x,2) rectangle ++(0.2, 0.2) coordinate [pos=.5] (one\xi);
\foreach \x [count=\ai from 1] in {1,0.8,...,0.2}
\foreach \y [count=\bi from 0] in {1,0.8,...,0.2}
\pgfmathtruncatemacro\yi{\ai + 5*\bi} % <-- here we go! ------ and there: --- vvv
\draw[thin] (0,0) ++(-\x, -\y) rectangle ++(0.2, 0.2) coordinate [pos=.5] (two\yi);
\foreach \x in {1,...,25}
\draw[->] (one\x) -- (two\x);
\end{tikzpicture}
\end{document}
Output
![enter image description here](https://i.stack.imgur.com/3t4pm.png)
You can load
\usetikzlibrary{angles,quotes}
and draw the angles.
\pic [draw,->,red,thick,angle radius=1cm,"$A$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = C--B--F};
\pic [draw,latex-,blue,thick,angle radius=1cm,"$B$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = D--B--C};
\pic [draw,-stealth,red,thick,angle radius=1cm,"$\phi_{6}$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = c--C--F};
\pic [draw,latex-,green,thick,angle radius=1.2cm,"$-\phi_{5}$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = D--C--c};
\pic [draw,-stealth,red,thick,angle radius=1cm,"$\phi_{7}$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = d--D--E};
\pic [draw,gray,thick,angle radius=1cm,"$\phi_{10}$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = E--F--f};
Here is the full code:
\documentclass[tikz,border=4]{standalone}
\usetikzlibrary{angles,quotes}
\begin{document}
\begin{tikzpicture}[scale=0.4]
%coördinats
\coordinate[label=above:£A£] (A) at (-10,0);
\coordinate[label=left:£B£] (B) at (-14.8844,0);
\coordinate (B2) at (-11.8844,0);
\coordinate (B3) at (-11.4844,0);
\coordinate[label=120:£C£] (C) at (0,0);
\coordinate (C2) at (1.8,0);
\coordinate (C3) at (2.2,0);
\coordinate[label=below:£D£] (D) at (-61:10cm);
\coordinate (D2) at (6.84809620246,-8.74619707139);
\coordinate[label=left:£E£] (E) at (9.69619240493,0);
\coordinate[label=above:£F£] (F) at (61:10cm);
\coordinate (F2) at (6.84809620246,8.74619707139);
%draw points
\foreach \point in {A,B,C,D,E,F}
\fill [black] (\point) circle (5pt);
%draw lines
\draw[blue,very thick] (A) -- (B);
\draw[black, very thick] (A) -- (C) -- (D) -- (E) -- (F) -- (C);
\draw[black, very thick] (B) -- (D);
\draw[black, very thick] (B) -- (F);
%draw aid lines
\draw[gray] (C) -- +(3,0)coordinate (c);
\draw[gray] (D) -- +(3,0)coordinate (d);
\draw[gray] (F) -- +(3,0)coordinate (f);
\pic [draw,->,red,thick,angle radius=1cm,"$A$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = C--B--F};
\pic [draw,latex-,blue,thick,angle radius=1cm,"$B$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = D--B--C};
\pic [draw,-stealth,red,thick,angle radius=1cm,"$\phi_{6}$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = c--C--F};
\pic [draw,latex-,green,thick,angle radius=1.2cm,"$-\phi_{5}$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = D--C--c};
\pic [draw,-stealth,red,thick,angle radius=1cm,"$\phi_{7}$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = d--D--E};
\pic [draw,gray,thick,angle radius=1cm,"$\phi_{10}$"{anchor=west,text =
black,font=\footnotesize}, angle eccentricity=1] {angle = E--F--f};
\end{tikzpicture}
\end{document}
![enter image description here](https://i.stack.imgur.com/OAleM.png)
Best Answer
One way, with
tikz
: