This query is based on this.
buffHeight and vertDis’s dimensions are in pt. What about macro-defined constants (\buffHeight and \vertDis)? Are they unitless? If so, if I slap in a unit, i.e., \buffHeight cm, would it give me 5 cm, and \buffHeight in 5 inches?
\buffHeight cmwill become a literal1cm. – Henri Menke Mar 11 '21 at 17:20ininstead ofcm, the macro’s dimensions will be in inches instead of centimeters. – Superman Mar 11 '21 at 17:21ptby default? I.e. just sayingminimum height = \buffHeightwould give\buffHeightpt – Superman Mar 11 '21 at 17:24\pgfsetlengthwhich is an entirely different story because it implements its own parser. In this context dimensionless numbers are implicitly assignedptbut that is very different from TeX's normal dimension parsing. For example\parindent=1would raise an error whereas\pgfmathsetlength{\parindent}{1}would assign1pt. – Henri Menke Mar 11 '21 at 17:28minimum height = \buffHeightwhen setting up the shape’s dimensions raise an error? – Superman Mar 11 '21 at 17:35\pgfmathsetlength(like most things in TikZ), so\buffHeightexpands to a literal1which receives an implicitpt. – Henri Menke Mar 11 '21 at 18:11