Tikz-Funktion gibt Koordinaten zurück

Tikz-Funktion gibt Koordinaten zurück

Gibt es in Tikz eine Möglichkeit, dass eine verzögerte Funktion eine Koordinate zurückgibt? Ich möchte so etwas tun:

\pgfmathdeclarefunction{test}{1}{\pgfmathparse{({#1},{#1})}}
\newcommand{\testCommand}{
    \tikzmath{
        {\fill test(2) circle [radius=1pt];};%
    }
}

Aber es gibt mir viele unverständliche Fehler.

Danke!

verwandte Informationen