summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionvecteur_en_corr.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionvecteur_en_corr.tex')
-rw-r--r--Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionvecteur_en_corr.tex85
1 files changed, 85 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionvecteur_en_corr.tex b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionvecteur_en_corr.tex
new file mode 100644
index 00000000000..b33c652a21b
--- /dev/null
+++ b/Master/texmf-dist/doc/generic/pst-solides3d/doc-en/par-projectionvecteur_en_corr.tex
@@ -0,0 +1,85 @@
+\section{Vectors}
+
+\subsection{Direct definition}
+
+The object \texttt{vecteur} allows us to define and draw a vector.
+To do so in a simple way, we use the option \verb+args+ to define
+its components $(x,y)$ and we specify the point from where the
+vector starts with the macro \bs{psProjection} (or we may use a
+named point).
+
+As with points, we can save the components of a vector using the
+option \texttt{name}.
+
+\begin{LTXexample}[width=7.5cm]
+\begin{pspicture}(-3,-3)(4,3.5)%
+\psframe*[linecolor=blue!50](-3,-3)(4,3.5)
+\psset{viewpoint=50 30 15,Decran=60}
+\psset{solidmemory}
+%% definition du plan de projection
+\psSolid[object=plan,
+ definition=equation,
+ args={[1 0 0 0] 90},
+ planmarks,
+ name=monplan]
+\psset{plan=monplan}
+%% definition du point A
+\psProjection[object=point,
+ args=-2 0.75,
+ name=A,text=A,
+ pos=dl]
+\psProjection[object=vecteur,
+ linecolor=red,
+ args=1 1,
+ name=U](1,0)
+\psProjection[object=vecteur,
+ args=U,
+ linecolor=blue](A)
+\composeSolid
+\axesIIID(4,2,2)(5,4,3)
+\end{pspicture}
+\end{LTXexample}
+
+
+\subsection{Some more definitions}
+
+There are other methods to define a vector in 2D. The options
+\texttt{definition} and \texttt{args} allow a variety of supported
+methods:
+
+\begin{itemize}
+
+\item \texttt{[definition=vecteur]};
+\verb+args=+ $A$ $B$.
+
+The vector $\overrightarrow {AB}$
+
+\item \texttt{[definition=orthovecteur]};
+\verb+args=+ $u$.
+
+A vector perpendicular to $\vec u$ with the same length.
+
+\item \texttt{[definition=normalize]};
+\verb+args=+ $u$.
+
+The vector $\Vert \vec u \Vert ^{-1} \vec u$
+if $\vec u \neq \vec 0$, and $\vec 0$ otherwise.
+
+\item \texttt{[definition=addv]};
+\verb+args=+ $u$ $v$.
+
+The vector $\vec u + \vec v$
+
+\item \texttt{[definition=subv]};
+\verb+args=+ $u$ $v$.
+
+The vector $\vec u - \vec v$
+
+\item \texttt{[definition=mulv]};
+\verb+args=+ $u$ $\alpha $.
+
+The vector $\alpha \vec u$
+
+\end{itemize}
+
+\endinput