Following this answer, I need to:
- draw a horizontal line between point
aand its scope-image, and draw another horizontal line between pointband its scope-image - fill the trapezoid whose sides are two horizontal lines drawn in the previous step, the line connecting
aandb, and the line connecting the images ofaandb.
\documentclass[border=2pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{matrix,positioning,calc}
\usetikzlibrary{decorations.pathmorphing,arrows.meta}
\tikzset{>={Latex[width=2mm,length=2mm]}}
\usepackage{environ}
\NewEnviron{xmirror}[2]{
\BODY
\begin{scope}[xscale= #1,xshift=#2]\BODY\end{scope}
}
\begin{document}
\begin{tikzpicture}
\begin{xmirror}{-1}{-4cm}
\draw [fill=yellow] (0,0) -- ++(0.4,0) coordinate(a) node[right]{a} -- ++(1,-2) coordinate(b) node[right]{b} -- ++(0,-0.2) -- ++(-0.2,0) -- ++(0,-0.2) -- ++(-0.2,0) -- ++(0,0.4) -- cycle ;
\end{xmirror}
\end{tikzpicture}
\end{document}





aandbalready exist or should be between this two point be double line? – Zarko Apr 03 '17 at 12:21aandb? or something else ? – Zarko Apr 03 '17 at 12:41