POV-Ray : Newsgroups : povray.newusers : Coordinates after rotation? : Re: Coordinates after rotation? Server Time
1 Jul 2024 03:05:20 EDT (-0400)
  Re: Coordinates after rotation?  
From: Roman Reiner
Date: 29 Jun 2011 03:00:01
Message: <web.4e0acc6ba88fb21c6e991f980@news.povray.org>
"zozimus" <nomail@nomail> wrote:
> I am having some difficulty connecting a few cylinders which I'm trying to make
> a 3D pentagram knot with. The problem is that I'm not sure of the coordinates of
> the ends of the cylinders after I have translated and rotated them.
>
> Is there a way of doing:
>
> Macro (<A,B,C>,
> translate <0,20,-10>
> rotate <20,0,10> )
> etc
>
> to return the coordinates of <A,B,C> after the transformations?

Yes!

#declare NewABC = vrotate(<A,B,C>+<0,20,-19>, <20,0,10>)

Regards Roman


Post a reply to this message

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