POV-Ray : Newsgroups : povray.advanced-users : Vector handling : Re: Vector handling Server Time
12 Jun 2025 06:24:16 EDT (-0400)
  Re: Vector handling  
From: Bald Eagle
Date: 9 Jun 2025 21:50:00
Message: <web.68478f382f29ff11f9dae3025979125@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

> In the absence of a vector triggering a misidentification, I'm going to call
> this 30+ year stumbling block solved.

OK, I spoke too soon - I was lazy and was leaving out the testing of the
scalars.
Somehow _1_ broke it.
I modified, then _0_ broke it.

I modified again, looked good, tested with sizes 1-5, and all looked well.

IIRC, what brought me back to this was an annoyance with needing to test all
vector sizes separately with size-dependent macros.  And I think I needed a
general solution for . . . something.

I also vaguely recall that sometimes I wanted to compare vectors of unequal
sizes - only comparing the number of components of the smallest vector.
So I added a Boolean flag to do a partial comparison.

And this is what I have so far.  Ugly development code, warts and all.

Needs more testing, since there's probably something else lurking in there.

- BW


Post a reply to this message


Attachments:
Download 'newvectorequalitymacro.pov.txt' (5 KB)

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