I am using the following code to add the tangent vector at various points along a curve. I would like to normalize each vector, thus resulting in tangent vectors of equal unit length. How might I achieve this?
\documentclass[11pt]{article}
\usepackage{tikz}
\usetikzlibrary{arrows}
\begin{document}
\begin{tikzpicture}[allow upside down,x=1.5cm,y=1.4cm]
\draw[red,thick] (0,0)
.. controls +(right:6cm) and +(left:4cm) .. (2,6)
\foreach \p in {0,10,...,100} {
node[sloped,inner sep=0cm,above,pos=\p*0.01,
anchor=south west,
minimum height=(10+\p)*0.03cm,minimum width=(10+\p)*0.03cm]
(N \p){}
}
.. controls +(right:2cm) and +(right:3cm) .. (6,2)
\foreach \p in {0,10,...,100} {
node[sloped,inner sep=0cm,above,pos=\p*0.01,
anchor=south west,
minimum height=(110-\p)*0.03cm,minimum width=(110-\p)*0.03cm]
(N2 \p){}
}
;
\foreach \p in {0,10,...,100} {
\draw[-latex,color=black] (N \p.south west) -- (N \p.south east);
}
\foreach \p in {0,10,...,100} {
\draw[-latex,color=black] (N2 \p.south west) -- (N2 \p.south east);
}
\end{tikzpicture}
\end{document}


