\xslant、\yslant 在范围和度数上的映射?

\xslant、\yslant 在范围和度数上的映射?

为了在 2D 中投影图像或文本,可以定义仰角和旋转,并实施以下方案

\def\thexslant{-1}
\def\theyslant{0.5}

\begin{scope}[every node/.append style={%
yslant=\theyslant,%
xslant=\thexslant},%
yslant=\theyslant,%
xslant=\thexslant%
]%
%<content>
\end{scope}%

用两个角度(比如 45 度、45 度)强制实现此效果的最有效方法是什么?请参阅以下 mwe:

\documentclass[border=0cm]{standalone}%
\usepackage{tikz}%
\usetikzlibrary{positioning}%

% orientation
\def\thexslant{-1}
\def\theyslant{0.5}
% this may be equivalent to (-45, 22.5) degrees
% 0.6667 may be equivalent with 30 degrees
\begin{document}
\begin{tikzpicture}[scale=.9,every node/.style={minimum size=1cm},on grid]
\begin{scope}[%
yshift=0cm,every node/.append style={%
yslant=\theyslant,xslant=\thexslant},yslant=\theyslant, xslant=\thexslant%
]%
\node[draw=none,anchor=south west,xshift=0cm] (labelf) at (0,0) {\includegraphics[width=1.0\textwidth]{example-image}};%
\end{scope}%
\end{tikzpicture}
\end{document} 

** 我的选项中可能有冗余scope

这个帖子可能相关。

相关内容