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:

> Sorry I forgot to add:
>
> David may have a point, though it is not exactly what he is stating.
>
> Degrees have the property that "interesting" angles are more immune to
> data transformations than radians. float(90) == double(90), while
> float(M_PI_2) != double(M_PI_2).

The problem rather is that any M_PI_2 is not equal to pi/2.  There is no
floating point number p2 for which cos(p2) == 0.0.

> This can mean that you get the expected sin and cos for "interesting"
> angles more often.

Well, more often than _zero_ times is not a high bar, is it?

> Where he is wrong is in thinking degrees make it easier to arrive at
> these integers from an angle. I don't think it makes any difference as
> you need to do an fmod or some equivalent in both cases.

So for what value of p is cos(p) == 0.0 ?

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