diff options
author | Carl Worth <cworth@cworth.org> | 2004-10-12 14:09:37 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2004-10-12 14:09:37 +0000 |
commit | 047ce336000d595bcc123bb3647c44d239e1b89a (patch) | |
tree | 646ed3f63fe105e1afba11144f9209f1fb02967e /src/cairo-pen.c | |
parent | cc890b9cf4d2a38e13ae48e16589c4fd02678f99 (diff) | |
download | cairo-047ce336000d595bcc123bb3647c44d239e1b89a.tar.gz |
Fix a few typos in pen vertex math description.
Diffstat (limited to 'src/cairo-pen.c')
-rw-r--r-- | src/cairo-pen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-pen.c b/src/cairo-pen.c index 1c63adec9..3e58dd7fc 100644 --- a/src/cairo-pen.c +++ b/src/cairo-pen.c @@ -231,7 +231,7 @@ and Thus the maximum value is - MAX[a*cos(t) + b*sin(t)] = (a*a + b*b)/sqrt(a^2 + b^2) + MAX[a*cos(t) + b*sin(t)] = (a^2 + b^2)/sqrt(a^2 + b^2) = sqrt(a^2 + b^2) @@ -253,7 +253,7 @@ Define Thus r^2(t) = (a*cos(t) + b*sin(t))^2 + (c*cos(t) + d*sin(t))^2 - = (a^2 + c^2)*cos(t) + (b^2 + d^2)*sin(t) + = (a^2 + c^2)*cos^2(t) + (b^2 + d^2)*sin^2(t) + 2*(a*b + c*d)*cos(t)*sin(t) Now apply the double angle formulae (A) to (C) from above: @@ -333,7 +333,7 @@ Now compute the approximation error, E: Find the extremum by differentiation wrt t and setting that to zero -∂(E²)/∂(t) = (1-cos(d))² (M² - m²) (-2 cos(t) sin(t)) +∂(E²)/∂(t) = (1-cos(∆))² (M² - m²) (-2 cos(t) sin(t)) 0 = 2 cos (t) sin (t) 0 = sin (2t) |