POV-Ray : Newsgroups : povray.general : Stupid vector question Server Time
1 Nov 2024 15:27:20 EDT (-0400)
  Stupid vector question (Message 1 to 2 of 2)  
From: Greg M  Johnson
Subject: Stupid vector question
Date: 12 Sep 2004 21:25:12
Message: <4144f6f8$1@news.povray.org>
#declare Anowdotxz=<1,0,1>*(Veenext-Veenow);

Is this exactly the same result as:

#declare Anowdotxz=<Veenext.x-Veenow.x,0,Veenext.z-Veenow.z>;

My hunch is that it is, but my overall code isn't doing what I expect it to.
Sometimes there's the temptation to introduce sloppy code (the latter) when
I'm afraid I don't understand proper syntax.


Post a reply to this message

From: Thies Heidecke
Subject: Re: Stupid vector question
Date: 12 Sep 2004 21:41:31
Message: <4144facb$1@news.povray.org>
"Greg M. Johnson" <gregj;-)565### [at] aolcom> schrieb im Newsbeitrag
news:4144f6f8$1@news.povray.org...
>
> #declare Anowdotxz=<1,0,1>*(Veenext-Veenow);
>
> Is this exactly the same result as:
>
> #declare Anowdotxz=<Veenext.x-Veenow.x,0,Veenext.z-Veenow.z>;

Yes, it's exactly the same

> My hunch is that it is, but my overall code isn't doing what I expect it
to.
> Sometimes there's the temptation to introduce sloppy code (the latter)
when
> I'm afraid I don't understand proper syntax.
I know what you mean..
But the bug must lie somewhere else

Thies


Post a reply to this message

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