POV-Ray : Newsgroups : povray.newusers : vector data structure : Re: vector data structure Server Time
2 Nov 2024 13:17:54 EDT (-0400)
  Re: vector data structure  
From: Tim Nikias v2 0
Date: 20 Feb 2004 17:01:31
Message: <403683bb@news.povray.org>
As far as I've understood the docs, doing a .x or such, like Vector.x, would
not return a "handle" to the X-Component of the Vector, but actually return
the value stored there. So Vector.x actually IS a value, not a reference. If
the Vector would be <1,1,1>, then
#declare Vector.x = Vector.x/2;
would be like
#declare 1 = 1/2;
which obviously wouldn't work (on a logical basis, not sure how the parser
handles that).

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Email: tim.nikias (@) nolights.de


Post a reply to this message

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