Re: Shouldn't Cairo use/offer degrees rather than radians?
Lawrence D'Oliveiro <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Organization | Geek Central |
| Message-ID | <[email protected]> |
I wrote: > On Wed, 28 Jun 2017 12:34:34 +0200, David Kastrup wrote: > > > That is more than Cairo can deliver right now. > > Only by special-casing Which has consequences. Enclosed is a plot I just did of double-precision y = cos(x), in epsilon steps in the vicinity of x = π/2. This is supposed to be almost exactly a straight line, but as you can see, special-casing y = 0 at the midpoint introduces a kink into the line. This kind of thing can have consequences. -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo
cos_90deg_plot.png
(image/png, 4.1 KB) - not displayed