POV-Ray : Newsgroups : povray.general : Feature ... suggestions : Re: Feature ... suggestions Server Time
28 Apr 2024 21:26:19 EDT (-0400)
  Re: Feature ... suggestions  
From: Bald Eagle
Date: 21 Mar 2017 10:05:00
Message: <web.58d132625968649ec437ac910@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

> > Yes, and yes.
> > ...red, .u, .x, and .real would all be the same.
> > ...green, .v, .y, and .imag would all be the same as well.
>
> Hmm... I personally think `.r` and `.i` would be neater.
>
> We could also have `i` as a vector constant `<0,1>`, much like `y` is a
> vector constant `<0,1,0>`.
>
> Then again, how about having a /genuine/ complex number type instead?
> You know, stuff like:
>
>     #declare Foo = 3 + 4*i;
>     #declare Bar = Foo * Foo;
>
> Note how the latter operation wouldn't give the right answer when using
> 2D vector arithmetics as currently implemented.

I like it.   A dedicate complex number system would be very nice.
I'm still more of a fan of .real and .imag.
(I'm actually a bigger fan of _both_ so folks can choose to use one or the
other)


Post a reply to this message

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