develooper Front page | perl.perl6.language | Postings from July 2009

Re: r27605 - docs/Perl6/Spec/S32-setting-library

Thread Previous
From:
Geoffrey Broadwell
Date:
July 19, 2009 11:03
Subject:
Re: r27605 - docs/Perl6/Spec/S32-setting-library
Message ID:
1248026615.3705.57.camel@beast.home.broadwell.org
On Sat, 2009-07-18 at 21:22 -0400, James Cloos wrote:
> lwall> + enum TrigBase is export <Radians Degrees Gradians Circles>;
> 
> Is Circles of much value?
> 
> I can see Semicircles, since that would make the range (-1,1] or [-1,1).
> But a range of [0,1) or (0,1] seems *much* less useful.
> 
> Or am I missing an obvious use case?

With Circles, simple int/frac always gets you a count of full rotations
and an angle always between 0 and one full rotation.  Seems useful to
me.

Semicircles sounds useful as well, for the reason you state above.


-'f



Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About