I have two vectors, one with magnitude of 3 unit in a direction of 60 degrees north of east. The other vector has magnitude of 2 unit due east.
My objective is to draw the resultant vector without having to do numerical calculation first.
The following is my code snippet:
Code: Select all
\documentclass{article}
\usepackage{pstricks}
\pagestyle{empty}
\begin{document}
\bgroup
\begin{pspicture}[showgrid=true](0,0)(4,3)
\SpecialCoor
\psline[linecolor=blue]{->}(3;60)
\psline[linecolor=blue]{->}(2;0)
\psline[origin={2;0},linestyle=dashed,linewidth=0.2pt](3;60)
\psline[origin={3;60},linestyle=dashed,linewidth=0.2pt](2;0)
\end{pspicture}
\egroup
\end{document}
Is there a pretty geometric trick using PSTRICKS to accomplish this task?
regards,
Hayashi