develop-08 9110 Autum 1991
From the originals
13 scansMachine-transcribed text and image descriptions. Check the linked original for uncertain words or fine print.
These are transcribed pages from the documents, not the full publications. Open the original for the remaining pages.
PDF page 12
d e v e l o p Autumn 1991 10 Though you can draw curves without understanding the mathematics behind the operation, some people find this kind of thing interesting. This explanation is for those people (you know who you are). A quadratic Bézier (or parabola) can be defined by the parametric equation f( t ) = a(1 – t ) 2 + 2 bt(1 – t ) + ct 2 where t is a scalar and a, b, and c are points. This parametric formulation has the advantage of being rotationally independent: since t is the independent variable, and not x or y, there is no bias for curves that are symmetric about the x- or y-axis. Thus, to rotate the curve, you only need to rotate a, b, and c into their new positions, while the equation for the curve stays the same. To better understand the equation, take a look at its geometric representation in Figure 3. You’ll note there that as the curve is drawn from point a to point c, t varies from 0 to 1. The curve at a is tangential to the line ab, and the curve at c is tangential to the line bc. Its maximum displacement from the line that could be drawn from a to c is reached at point q, where t is 0.5. In addition, the curve at q is parallel to the (imagined) line ac. Perhaps the most useful property of the curve in this form is the easy way it can be decomposed into a pair of smaller curves, each of the same form. This is called subdivision and is the basis for drawing curves in QuickDraw. Suppose we subdivide the curve at point q, as shown in Figure 4. The point q is q = f ( 0.5) = ( a + 2 b + c) / 4 The tangent (that is, the first derivative) of the curve at q is parallel to the line ac. f ' ( t ) = –2 a(1 – t ) + 2 b(1 – 2 t ) + 2 ct f'(0.5) = c – a The line from the point b' = ( a + b) / 2 to q is tangential to the curve at q. q – b' = ( a + 2 b + c) / 4 – ( a + b) / 2 = ( a + 2 b + c – 2 a – 2 b) / 4 = ( c – a) / 4 By symmetry, the same holds for b'' = ( b + c) / 2. Thus, the formulas for the two curves that make up the left and right halves of the original curve are as follows: Left: a' = a b' = ( a + b) / 2 c' = ( a + 2 b + c) / 4 Right: a'' = ( a + 2 b + c) / 4 b'' = ( b + c) / 2 c'' = c The equations for the new points are especially nice, since the arithmetic can be performed with only shifts and adds, making it very efficient. Notice in Figure 4 that each of the resulting smaller curves is flatter than the original curve, by a factor of 4. This means that the distance from the midpoint of the curve to the midpoint of the straight line drawn from the start point to the endpoint is reduced by 4. Thus, if the curve is subdivided enough times, drawing the curve will be equivalent to drawing a line from the start point to the endpoint for each of the little curves. This is the basis for drawing the curve in QuickDraw. PARAMETRIC EQUATIONS, ANYONE?
Reading notes: Mathematical notation and superscripts are flattened in the extracted text, so exact symbols may be unclear. Figure references (Figure 3, Figure 4) point to unseen diagrams.
- Printed dates
- Autumn 1991
- Languages
- English