POV-Ray : Newsgroups : povray.general : Buggy trig? : Re: Buggy trig? Server Time
9 Aug 2024 23:26:19 EDT (-0400)
  Re: Buggy trig?  
From: Ron Parker
Date: 23 Jun 2000 14:26:01
Message: <slrn8l7bj7.v2b.ron.parker@linux.parkerr.fwi.com>
On Fri, 23 Jun 2000 13:23:38 -0500, Chris Huff wrote:
>It should be pretty easy to implement an "#angle_unit" keyword that 
>behaves like #version, you could get the current unit and save it, 
>switch to your preferred unit inside your include file, and switch back 
>without the user of the include knowing about it. Or you could use one 
>unit in some places and another in others, depending on what you are 
>doing. It could support degrees, radians, and whatever else you want, as 
>well as a "standard" setting(degrees for rotate, radians for trig).
>
>Most calculators allow you to do this, why not POV?

Because we've heard of "locality of reference?"  Specifically, if I see
you taking the sine of an angle, how do I know which units you're in 
without reading the whole file up to that point?  Better to use macros
that make your intention clear.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.