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

David Kastrup dak at gnu.org
Wed Jul 5 20:34:34 UTC 2017


Andreas Lobinger <lobingera at gmail.com> writes:

> Hello colleagues(s),
>
> i checked, i run a 1.13.1, but 1.14.6 gets me the same result.
>
> btw: if i run this arc through cairo_copy_path and readout the path
> data (see example in the API), i get:
>
> moveto[20.0,0.503906]
> curveto[20.0,7.16797,10.0,7.16797,10.0,0.503906]
>
> rounding of digits is a side effect, the y coordinates on the moveto
> and curveto are the same.

With this print format, the numbers would look the same.  Do they
compare equal when comparing them with == ?  And/or can you print with
something like 20 significant digits?

-- 
David Kastrup


More information about the cairo mailing list