thanks for taking the time. I have the problem, that I want to get normal vectors on a smooth plot, furthermore I have lines intersecting said plot, but they also need to end in the graph. My approach so far is using the decorations for the normal vectors. I need to create the next normal vector at the intersection of $A$ with the boundary, and I'd like to cut $A$ short at exactly the intersection.
\begin{tikzpicture}[
decoration={
markings,
mark=at position 0.4 with {\draw[->] (0,0)--(0,1);},
mark=at position 0.4 with {\draw[->] (0,0)--(2,-2) node[below]{A};},
mark=at position 0.4 with {\draw[<-] (0,0)--(-.8,-.8);}
}
]
\draw[postaction={decorate}] plot [smooth cycle] coordinates {(0,0) (1,1) (3,1) (3,0) (2,-1)};
\end{tikzpicture}
I hope my problem has a solution. Thanks in advance. Fabian


at position 0.4means at 40% of the total length of the path. Could you please try to reword it? (BTW, by the rules of this site, follow-up questions are to be asked in form of a new question. Asking questions is free, after all.) – Nov 22 '18 at 16:45