POV-Ray : Newsgroups : povray.general : Buggy trig? : Re: Buggy trig? Server Time
9 Aug 2024 23:20:58 EDT (-0400)
  Re: Buggy trig?  
From: Rune
Date: 6 Jun 2000 20:21:51
Message: <393d959f@news.povray.org>
"Philippe Debar" wrote:
> // Tired of degrees/radians conversions? try these!

Nice and simple!

As an addition I just made the ones below.
They're not tested, but they should work.

#macro rotater(A)
   rotate <degrees(A.x),degrees(A.y),degrees(A.z)>
#end

#macro vrotater(A,B)
   vrotate(A,<degrees(B.x),degrees(B.y),degrees(B.z)>)
#end

#macro vaxis_rotater(A,B,C)
   vaxis_rotate(A,B,degrees(C))
#end

Greetings,

Rune

---
Updated April 25: http://rsj.mobilixnet.dk
Containing 3D images, stereograms, tutorials,
The POV Desktop Theme, 350+ raytracing jokes,
miscellaneous other things, and a lot of fun!


Post a reply to this message

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