Debian Codegraph @

texmf-dist/doc/latex/lapdf/rcurve.tex

raw
1 \input preamble.tex
2
3 % ---------------------------------------------------------------------------
4 \begin{document}
5 \begin{center}
6 {\Huge \bf{I. Rational Quadratic Bezier Curves}}
7 \bigskip
8
9 \begin{lapdf}(16,20)(-8,-10)
10 \Dgray
11 \Dash(1)
12 \Polygon(-8,0)(0,10)(8,0) \Stroke
13 \Dash(0)
14 \Red
15 \Rcurve(64)(-8,0,7)(0,10,1)(8,0,7) \Stroke
16 \Green
17 \Rcurve(64)(-8,0,6)(0,10,1)(8,0,6) \Stroke
18 \Blue
19 \Rcurve(64)(-8,0,5)(0,10,1)(8,0,5) \Stroke
20 \Cyan
21 \Rcurve(64)(-8,0,4)(0,10,1)(8,0,4) \Stroke
22 \Magenta
23 \Rcurve(64)(-8,0,3)(0,10,1)(8,0,3) \Stroke
24 \Yellow
25 \Rcurve(64)(-8,0,2)(0,10,1)(8,0,2) \Stroke
26 \Black
27 \Rcurve(64)(-8,0,1)(0,10,1)(8,0,1) \Stroke
28 \Red
29 \Rcurve(64)(-8,0,1)(0,10,2)(8,0,1) \Stroke
30 \Green
31 \Rcurve(64)(-8,0,1)(0,10,3)(8,0,1) \Stroke
32 \Blue
33 \Rcurve(64)(-8,0,1)(0,10,4)(8,0,1) \Stroke
34 \Cyan
35 \Rcurve(64)(-8,0,1)(0,10,5)(8,0,1) \Stroke
36 \Magenta
37 \Rcurve(64)(-8,0,1)(0,10,6)(8,0,1) \Stroke
38 \Yellow
39 \Rcurve(64)(-8,0,1)(0,10,7)(8,0,1) \Stroke
40 \Black
41 \Rcurve(64)(-8,0,1)(0,10,0)(8,0,1) \Stroke
42 \Red
43 \Rcurve(64)(-8,0,7)(0,10,-1)(8,0,7) \Stroke
44 \Green
45 \Rcurve(64)(-8,0,6)(0,10,-1)(8,0,6) \Stroke
46 \Blue
47 \Rcurve(64)(-8,0,5)(0,10,-1)(8,0,5) \Stroke
48 \Cyan
49 \Rcurve(64)(-8,0,4)(0,10,-1)(8,0,4) \Stroke
50 \Magenta
51 \Rcurve(64)(-8,0,3)(0,10,-1)(8,0,3) \Stroke
52 \Yellow
53 \Rcurve(64)(-8,0,2)(0,10,-1)(8,0,2) \Stroke
54 \Point(1)(-8,0)
55 \Point(1)(+0,10)
56 \Point(1)(+8,0)
57 \Text(-8.0,0.2,rb){$P_0$}
58 \Text(+0.2,+10.3,rb){$P_1$}
59 \Text(+8.0,0.2,lb){$P_2$}
60 \end{lapdf}
61 \end{center}
62 All curves share the same Bezier points, but they differ in the weights of
63 the points. The black curve is a parabola {$w = 1$}. Above of this all
64 curves are hyperbolas with increasing weigts, below of this are elliptic curves
65 with decreasing weights. The line has a weight of {$w = 0$}. After this
66 the weights are negative increasing. The curves are the complementare
67 elliptical arcs to the positive counterparts.
68
69 \newpage
70 \unitlength1.16cm
71
72 \begin{center}
73 {\Huge \bf{II. Conic Curves}}
74 \bigskip
75
76 \begin{lapdf}(16,16)(0,0)
77 \Dgray
78 \Rcurve(64)(4,10.333,2)(0,3.4,1)(8,3.4,2)
79 \Rcurve(80)(4,10.333,2)(0,3.4,-1)(8,3.4,2) \Stroke
80 \Red
81 \Rcurve(64)(4,9.7,2)(0,4.7,1)(8,4.7,2)
82 \Rcurve(80)(4,9.7,2)(0,4.7,-1)(8,4.7,2) \Stroke
83 \Green
84 \Rcurve(64)(9.7,4,2)(4.7,0,1)(4.7,8,2)
85 \Rcurve(80)(9.7,4,2)(4.7,0,-1)(4.7,8,2) \Stroke
86 \Blue
87 \Rcurve(64)(16,16,1)(8,8,5)(16,0,1) \Stroke
88 \Cyan
89 \Rcurve(64)(0,16,1)(8,8,5)(0,0,1) \Stroke
90 \Magenta
91 \Rcurve(64)(0,16,1)(8,0,1)(16,16,1) \Stroke
92 \Yellow
93 \Rcurve(64)(0,0,1)(8,16,1)(16,0,1) \Stroke
94 \end{lapdf}
95
96 \large Circle, Ellipse, Parabola, Hyperbola
97 \end{center}
98 \end{document}