POV-Ray : Newsgroups : povray.text.scene-files : L*C*h(uv) functions : Re: L*C*h(uv) functions Server Time
29 Apr 2024 14:23:03 EDT (-0400)
  Re: L*C*h(uv) functions  
From: clipka
Date: 22 Nov 2016 20:53:03
Message: <5834f67f$1@news.povray.org>
Am 23.11.2016 um 02:11 schrieb Mike Horvath:

>> I am also not sure if using atan2 is good, since that only covers 90
>> degrees, whereas the hue circle must use all 360 degrees.
>>
>> Mike
> 
> Sorry. Disregard that. It works.

That's the fun thing about `atan2(a,b)`: In contrast to `atan(a/b)` it
doesn't lose the information about the quadrant; it also avoids the
singularity at b=0 (provided a<>0).


Post a reply to this message

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