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

David Kastrup dak at gnu.org
Fri Jun 30 20:52:10 UTC 2017


Bill Spitzak <spitzak at gmail.com> writes:

> A function like this might be useful:
>
>   cairo_rotate_2(cairo_t*, double x, double y)
>
> This would rotate it so the x axis is angled by atan2(y,x). I am not
> sure if it should also scale by hypot(x,y) or normalize the vector.
> This can be implemented without any trig functions.

Not much more user-friendly than setting the transform matrix to
individual values.

-- 
David Kastrup



More information about the cairo mailing list