POV-Ray : Newsgroups : povray.newusers : Get only x or y or z coordinate of a vector : Re: Get only x or y or z coordinate of a vector Server Time
24 Jun 2024 08:28:07 EDT (-0400)
  Re: Get only x or y or z coordinate of a vector  
From: Warp
Date: 3 Dec 2012 12:14:12
Message: <50bcdde4@news.povray.org>
huiakso <huiakso> wrote:
> Is there no easy way to do that?

> Something like:
> #declare P1 = <1, 2, 3>
> print(P1.y)
> => 2

Have you actually *tried* to use "P1.y"? Because it should work exactly
like that.

-- 
                                                          - Warp


Post a reply to this message

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