POV-Ray : Newsgroups : povray.newusers : Extracting x value from a vector : Re: Extracting x value from a vector Server Time
6 Sep 2024 04:20:56 EDT (-0400)
  Re: Extracting x value from a vector  
From: Spider
Date: 10 Feb 1999 17:06:16
Message: <36C2019F.A9892664@bahnhof.se>
Julius Klatte wrote:
> 
> #declare Myvector=<1,2,3>
> 
> if you want the x, you can type Myvector.x (as Mike said).
> This is actually tha same as saying Myvector*<1,0,0>
> 
Isn't the first one faster, since there si no vector multiplication
involved ???

I'd think it is, perhaps do a test with some 100 000 000 tries of each..
or, just assume .x is faster :-)

//Spider


Post a reply to this message

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