3 \subsection{Direct definition
}
5 The object
\texttt{droite
} allows us to define and draw a
\Index{line
}. In
6 the
\texttt{pst-solides3d
} package, a line in
2D is defined by its
9 We use the option
\Lkeyword{args
} to specify the end-points of the
10 chosen line. We can use coordinates or named points.
12 As with points and vectors, we can save the coordinates of the
13 line with the option
\Lkeyword{name
}.
15 \begin{LTXexample
}[width=
7.5cm
]
16 \begin{pspicture
}(-
3,-
3)(
4,
3.5)
%
17 \psframe*
[linecolor=blue!
50](-
3,-
3)(
4,
3.5)
18 \psset{viewpoint=
50 30 15,Decran=
60}
20 %% definition du plan de projection
24 planmarks,name=monplan
]
26 %% definition du point A
27 \psProjection[object=point,
30 \psProjection[object=point,
33 \psProjection[object=droite,
36 \psProjection[object=droite,
44 \subsection{Some other definitions
}
46 There are other methods to define a line in
2D. The options
47 \Lkeyword{definition
} and
\Lkeyword{args
} are used in these variants:
53 \item \texttt{\Lkeyword{definition
}=
\Lkeyval{horizontale
}};
54 \texttt{\Lkeyword{args
}=$b$
}.
56 The line with equation $y=b$.
58 \item \texttt{\Lkeyword{definition
}=
\Lkeyval{verticale
}};
59 \texttt{\Lkeyword{args
}=$a$
}.
61 The line with equation $x=a$.
63 \item \texttt{\Lkeyword{definition
}=
\Lkeyval{paral
}};
64 \texttt{\Lkeyword{args
}=$d$ $A$
}.
66 A line parallel to $d$ passing through
69 \item \texttt{\Lkeyword{definition
}=
\Lkeyword{perp
}};
70 \texttt{\Lkeyword{args
}=$d$ $A$
}.
72 A line perpendicular to $d$ passing
75 \item \texttt{\Lkeyword{definition
}=
\Lkeyval{mediatrice
}};
76 \texttt{\Lkeyword{args
}=$A$ $B$
}.
78 The perpendicular bisector of the line
81 \item \texttt{\Lkeyword{definition
}=
\Lkeyword{bissectrice
}};
82 \texttt{\Lkeyword{args
}=$A$ $B$ $C$
}.
84 The bisector of the angle $
\widehat
87 \item \texttt{\Lkeyword{definition
}=
\Lkeyword{axesymdroite
}};
88 \texttt{\Lkeyword{args
}=$d$ $D$
}.
90 The reflection of the line $d$ in the
93 \item \texttt{\Lkeyword{definition
}=
\Lkeyword{rotatedroite
}};
94 \texttt{\Lkeyword{args
}=$d$ $I$ $r$
}.
96 The image of the line $d$ after a
97 rotation with centre $I$ through an angle $r$ (in degrees)
99 \item \texttt{\Lkeyword{definition
}=
\Lkeyword{translatedroite
}};
100 \texttt{\Lkeyword{args
}=$d$ $u$
}.
102 The image of the line $d$ shifted by the vector $
\vec u$.