POV-Ray : Newsgroups : povray.binaries.programming : yuqk value distributions and color maps : Re: yuqk value distributions and color maps Server Time
15 Mar 2025 01:24:35 EDT (-0400)
  Re: yuqk value distributions and color maps  
From: Bald Eagle
Date: 10 Feb 2025 15:10:00
Message: <web.67aa5c2bd0698c425b4de9225979125@news.povray.org>
I was just ruminating some more on jimmying color maps, and your code for
utilizing complex numbers in yuqk:

Do you have a mechanism that "switches over" from real to imaginary upon taking
the sqrt of a negative number?

Math with imaginary numbers seems burdensome when one has to begin implementing
special-purpose functions at the user level.  Are there libraries that treat ALL
numbers as complex numbers, and only use special operations when the imaginary
component is nonzero?

I'm thinking that if your function VM were able to at least handle the
dot-notation of vector values (currently we have to pre-declare identifiers for
the separate vector components instead of simply using Vector.x) then you could
potentially use some nested select () to divert the math one way or the other.


Post a reply to this message

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