I want to draw the tangent line as well as the normal line for an arbitrary curve as follows.
\documentclass[pstricks,border=12pt]{standalone}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}[showgrid](6,3)
\pscurve[curvature=1 1 1](0,0)(1,2)(2,1)(4,2)(6,1)
\psTangentLine[Tnormal,linecolor=blue](2,1)(4,2)(6,1){3}{0.25}
\psTangentLine[linecolor=red](2,1)(4,2)(6,1){3}{1}
\pscircle*[linecolor=green](OCurve){3pt}
\end{pspicture}
\end{document}
Unfortunately, the point through which the above lines pass is not on the curve. What is wrong? And how to solve it?