[cairo] Shouldn't Cairo use/offer degrees rather than radians?

David Kastrup dak at gnu.org
Thu Jun 29 04:39:09 UTC 2017


Lawrence D'Oliveiro <ldo at geek-central.gen.nz> writes:

> 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.

Please look at the code I posted instead of judging a proposal based on
somebody else's work.

Thank you.

-- 
David Kastrup



More information about the cairo mailing list