square

A square is a regular quadrilateral, i.e. it has four sides of equal length and four equal (and right) angles.

\documentclass[tikz,margin={6cm 0cm}]{standalone}
\usepackage{tkz-euclide}
%
\begin{document}
\begin{tikzpicture}
    \tkzDefPoint(0,0){A}
    \tkzDefPoint(6,0){B}
    \tkzDefPoint(6,6){C}
    \tkzDefPoint(0,6){D}
    %   \tkzDrawPolygon(A,B,C,D)
    \begin{scope}[decoration={
        markings,
        mark=at position 0.525 with {\arrow{Stealth}}}
        ] 
        \tkzDrawSegments[postaction={decorate}, very thick](A,B D,C B,C A,D)
    \end{scope}
    %
    \tkzDrawSegments[thick](A,C B,D)
    \tkzDefMidPoint(A,C) \tkzGetPoint{M}
	%
	\tkzMarkSegments[mark=|](A,M M,C M,B D,M)
	%
	\tkzMarkRightAngles(A,B,C B,C,D C,D,A D,A,B)
	\tkzMarkRightAngle(C,M,D)
	%
\end{tikzpicture}
\end{document}

A square is a rhombus and a rectangle.


Powered by Forestry.md