\documentclass[pstricks,border=15pt]{standalone}
\usepackage{pstricks-add,pst-eucl}%
\begin{document}
\begin{pspicture}[showgrid](0,-3)(8,4)
\pnodes(3,3){A}(1,-1){B}(7,-1){C}
\pstMiddleAB[PosAngle=135]{A}{B}{M}
\pstMiddleAB{A}{C}{N}
\pstMiddleAB{M}{N}{I}
\def\figA{\pspolygon(A)(M)(N)}
\figA%
%\psrotate(I){-50}{\pspolygon(3,3)(2,1)(5,1)}%
\psrotate(I){-50}{\figA}
\end{pspicture}
\end{document}
有了\psrotate(I){-50}{\pspolygon(3,3)(2,1)(5,1)}
,我得到
有了\psrotate(I){-50}{\figA}
,我什么也没得到
假使,假设A=(3.2783,3.5876), B=(1.07368,-1.235), C=(7.777,-1.3336)
。
如何在不计算 M 和 N 的情况下获得输出?
答案1
\psrotate
不适用于节点(节点是当前系统中的固定点)。
\documentclass[pstricks,border=15pt]{standalone}
\usepackage{pstricks-add,pst-eucl}%
\begin{document}
\begin{pspicture}[showgrid](0,-3)(8,4)
\pnodes(3,3){A}(1,-1){B}(7,-1){C}
\pstMiddleAB[PosAngle=135]{A}{B}{M}
\pstMiddleAB{A}{C}{N}
\pstMiddleAB{M}{N}{I}
\def\figA{\pspolygon(A)(M)(N)}
\figA
\pstRotation[RotAngle=-50]{I}{A,M,N}[a,m,n]
\pspolygon[linecolor=red](a)(m)(n)
\end{pspicture}
\end{document}