Inspired by an answer I gave here, the question arose how I need to properly define a macro, if I want to pass it to a vector declaration in tikz.
If you want to modify a vector, the syntax used is basically x={(1,-0.5,0)}. If I want to put it in a macro, how has the definition to look like, to not causing problems with the curly brackets?
\documentclass[tikz,border=3mm]{standalone}
\usetikzlibrary{intersections,calc}
\begin{document}
\newcommand{\xvec}{\{(1,-0.5,0)\}}
\begin{tikzpicture}
\draw[thick, x={(1,-0.5,0)}](-1,0,0)--(1,0,0);
\draw[thick, x=\xvec](-1,0,0)--(1,0,0);
\end{tikzpicture}
\end{document}
