Re: Shouldn't Cairo use/offer degrees rather than radians?

David Kastrup <[email protected]>
Newsgroups gmane.comp.lib.cairo
Organization Organization?!?
Message-ID <[email protected]>
Bill Spitzak <[email protected]> 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

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.