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
|