I'm trying to calculate coordinates based on existing coordinates but each coordinate individually.
The first thing which is unclear to me is how to define scalar variables. I can define coordinates using the \coordinate
command, but what about scalars?
Looking through the manual I found the \pgfextractx
command, but I don't know how to use it, is it possible to use it within a coordinate calculation like for example
\coordinate(blah) at ($ (\pgfextractx{(centre)} + 2*cos(30), .. )$)
?
Best Answer
It is possible to do by means of
let
operation: