POV-Ray : Newsgroups : povray.newusers : Retrieving point information after rotation : Re: Retrieving point information after rotation Server Time
2 Jul 2024 21:47:53 EDT (-0400)
  Re: Retrieving point information after rotation  
From: Charles C
Date: 29 Jan 2011 14:00:01
Message: <web.4d4462a6fbc929b8cac4259f0@news.povray.org>
Stephen's answer is probably what you want.   But if you really want to know the
x,y,z location, you can create a vector representing the axis of your cylinder
before rotation and then rotate the vector by the same amount.

From the manual:

"vaxis_rotate(A,B,F) Rotate A about B by F. Given the x,y,z coordinates of a
point in space designated by the vector A, rotate that point about an arbitrary
axis defined by the vector B. Rotate it through an angle specified in degrees by
the float value F. The result is a vector containing the new x,y,z coordinates
of the point."

Charles


Post a reply to this message

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