Document ClassesLooking For Pretty Trick To Draw Resultant Vector (pstricks)

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

Looking For Pretty Trick To Draw Resultant Vector (pstricks)

Post by fractal.generator »

dear all,

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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Looking For Pretty Trick To Draw Resultant Vector (pstricks)

Post by localghost »

In the documentation of the (preferably to use) pstricks-add package I found an example in Section 21 (\psLNode and \psLCNode, p. 48) that might help.


Best regards
Thorsten¹
fractal.generator
Posts: 66
Joined: Tue Oct 07, 2008 9:39 am

Looking For Pretty Trick To Draw Resultant Vector (pstricks)

Post by fractal.generator »

localghost wrote:In the documentation of the (preferably to use) pstricks-add package I found an example in Section 21 (\psLNode and \psLCNode, p. 48) that might help.


Best regards
Thorsten¹
Dear Thorsten,

Thank you very much.
It is what I need.


regards,

Hayashi
Post Reply