POV-Ray : Newsgroups : povray.general : Rotation around an axis at the origin : Re: Rotation around an axis at the origin Server Time
7 Aug 2024 19:19:33 EDT (-0400)
  Re: Rotation around an axis at the origin  
From: Rune
Date: 4 Jul 2001 16:49:43
Message: <3b438167@news.povray.org>
So you want a rotation that is for objects what vaxis_rotate() is for
vectors?

Just do a vaxis_rotate of <1,0,0>, one of <0,1,0> and one of <0,0,1> and use
the resulting vectors for the first 9 values in the matrix. The last 3
values are 0, 0, 0.

However, I'm not sure if that's what you asked for, or if you need the
actual formulae (which I don't know).

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated June 26)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

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