POV-Ray : Newsgroups : povray.newusers : determining location of an object that has been transformed and rotated : Re: determining location of an object that has been transformed and rotated Server Time
30 Jul 2024 04:24:56 EDT (-0400)
  Re: determining location of an object that has been transformed and rotated  
From: Tim Nikias
Date: 15 Sep 2004 17:15:38
Message: <4148b0fa$1@news.povray.org>
Though Slime's answer is very thorough, he missed another nice feature...

If you want to rotate a position, simply apply the rotation to a vector
using vrotate, like this:

#declare NewPosition = vrotate(OldPosition,RotationVector);

And voila! The position gets rotated! :-)

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

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