%% examples/wedge-geometry-values.tex %% Per-node wedge values for rotation, calculations, and labels. \documentclass[tikz,border=6mm]{standalone} \usepackage{tikzphysics} \begin{document} \begin{tikzpicture} \node[wedge, minimum width=6cm, wedge angle=32] (W) at (0,0) {}; %% The direction belongs to W, so changing W's geometry also rotates B. \node[block, minimum width=1cm, minimum height=0.8cm, rotate=\geometryvalue{W}{slope angle}, anchor=south] (B) at (W.slope-mid) {$m$}; %% Interior angles can be printed or used in PGF calculations. \node[below left=2pt] at (W.bl) {$\pgfmathprintnumber{\geometryvalue{W}{left angle}}^\circ$}; \node[below right=2pt] at (W.br) {$\pgfmathprintnumber{\geometryvalue{W}{right angle}}^\circ$}; \node[above right=2pt] at (W.top) {$\pgfmathprintnumber{\geometryvalue{W}{top angle}}^\circ$}; \node[fill=white,inner sep=2pt] at (W.centroid) {\footnotesize slope direction $=\pgfmathprintnumber{\tikzphysicsgeometryvalue{W}{slope direction}}^\circ$}; \end{tikzpicture} \end{document} .