[cairo-commit] 2 commits - src/cairo-arc.c
Behdad Esfahbod
behdad at kemper.freedesktop.org
Sun Mar 25 11:40:11 PDT 2012
src/cairo-arc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit ede11b2954db19e3ca9d31cef7d04a7bf0e42ddc
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Sun Mar 25 14:37:14 2012 -0400
Fix math in comments
diff --git a/src/cairo-arc.c b/src/cairo-arc.c
index dc07fee..6977e88 100644
--- a/src/cairo-arc.c
+++ b/src/cairo-arc.c
@@ -139,7 +139,7 @@ _arc_segments_needed (double angle,
From that paper, a very practical value of h is:
- h = 4/3 * tan(angle/4)
+ h = 4/3 * R * tan(angle/4)
This value does not give the spline with minimal error, but it does
provide a very good approximation, (6th-order convergence), and the
commit 2721d05d69e42eef592ea0394df89cdc91414330
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Thu Sep 22 13:02:44 2011 -0400
Typo
diff --git a/src/cairo-arc.c b/src/cairo-arc.c
index c997e5c..dc07fee 100644
--- a/src/cairo-arc.c
+++ b/src/cairo-arc.c
@@ -133,7 +133,7 @@ _arc_segments_needed (double angle,
for some value of h.
- "Approximation of circular arcs by cubic poynomials", Michael
+ "Approximation of circular arcs by cubic polynomials", Michael
Goldapp, Computer Aided Geometric Design 8 (1991) 227-238, provides
various values of h along with error analysis for each.
More information about the cairo-commit
mailing list