POV-Ray : Newsgroups : povray.newusers : Extracting x value from a vector : Re: Extracting x value from a vector Server Time
6 Sep 2024 04:21:23 EDT (-0400)
  Re: Extracting x value from a vector  
From: Mike
Date: 9 Feb 1999 05:03:46
Message: <36C00733.458B305F@aol.com>
#declare this = <1, 2, 3>

sphere {<this.x, this.y, this.z>, this.x + this.y + this.z}

gives:

sphere {<1, 2, 3>, 6}

well, you get the idea...

-Mike


> 
> Hi!
> How can I assign the x (or y, z) value stored in a vector with a variable?
> 
> Thanks
> Steve
> http://csi.findhere.com
> csi### [at] usanet


Post a reply to this message

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