I calculate some lengths of a path (without the use of the let operator!).
To achieve that I use the \pgfgetlastxy{}{}; command (which works fine so far) but if I scale the picture, the calculations do not make sense anymore, as I cannot take the scaling factor into account.
The following code should demonstrate my problem.
\documentclass{article}
\usepackage{tikz}
\tikzset{dot/.style={circle, fill, inner sep=2pt}}
\begin{document}
\begin{tikzpicture}[scale=1]
\draw (0,0) node[below] {scale = 1} -- (20pt,60pt);
\pgfgetlastxy{\myLastX}{\myLastY};
\node[dot, label={right:(\myLastX, \myLastY)}] at (\myLastX, \myLastY) {};
\end{tikzpicture}
%
\begin{tikzpicture}[scale=0.5]
\draw (0,0) node[below] {scale = 0.5} -- (20pt,60pt);
\pgfgetlastxy{\myLastX}{\myLastY};
\node[dot, label={right:(\myLastX, \myLastY)}] at (\myLastX, \myLastY) {};
\end{tikzpicture}
%
\begin{tikzpicture}[scale=0.5]
\draw (0,0) node[below] {scale = 0.5 (what I want)} -- (20pt,60pt);
\pgfgetlastxy{\myLastX}{\myLastY};
% \getglobalscale{\globalscale} <--- How to get the global value?
\pgfmathsetmacro\globalscale{0.5}
\node[dot, label={right:(\myLastX, \myLastY)}] at (\myLastX/\globalscale, \myLastY/\globalscale) {};
\end{tikzpicture}
%
% Does not work
% \begin{tikzpicture}[scale=0.5]
% \draw (0,0) node[below] {scale = 0.5 (what I want)} -- (20pt,60pt);
% \pgfgetlastxy{\myLastX}{\myLastY};
% \pgfkeysgetvalue{/tikz/scale}{\globalscale}
% \node[dot, label={right:(\myLastX, \myLastY)}] at (\myLastX/\globalscale, \myLastY/\globalscale) {};
% \end{tikzpicture}
\end{document}
TL;DR: To solve my (initial) problem I need to get the value of the global picture scale. The way I tried to get it in the last code snippet did not work. Is there any other way to get it?

