3 \subsection{Direct definition
}
5 The object
\Lkeyword{cercle
} allows us to define and draw a
\Index{circle
}.
6 In the
\texttt{pst-solides3d
} package, a circle in
2D is defined
7 by its centre and radius.
9 We use the option
\Lkeyword{args
} to specify the centre and radius of
10 the chosen circle. We can use coordinates or named variables.
12 The argument
\texttt{\Lkeyword{range
}=$t_
{\rm min
}$ $t_
{\rm max
}$
} allows
%$
13 us to specify an arc of the chosen circle.
15 As for all the other object, we can save the circle data using the
16 option
\Lkeyword{name
}.
18 \begin{LTXexample
}[width=
7.5cm
]
19 \begin{pspicture
}(-
3,-
3)(
4,
3.5)
%
20 \psframe*
[linecolor=blue!
50](-
3,-
3)(
4,
3.5)
21 \psset{viewpoint=
50 30 15,Decran=
60}
23 %% definition du plan de projection
30 %% definition du point A
31 \psProjection[object=point,
35 \psProjection[object=cercle,
38 \psProjection[object=cercle,
39 args=
1 1 .5,linecolor=blue,
45 \subsection{Some other definitions
}
47 There are additional methods to define a circle in
2D. The options
48 \Lkeyword{definition
} and
\Lkeyword{args
} give the following supported
53 \item \texttt{\Lkeyword{definition
}=
\Lkeyword{ABcercle
}};
54 \texttt{\Lkeyword{args
}=$A$ $B$ $C$
}.
56 A circle through the points $A$, $B$
59 \item \texttt{\Lkeyword{definition
}=
\Lkeyword{diamcercle
}};
60 \texttt{\Lkeyword{args
}=$A$ $B$
}.
62 A circle with diameter $
[AB
]$.