POV-Ray : Newsgroups : povray.bugreports : vaxis_rotate bug : Re: vaxis_rotate bug Server Time
26 Jun 2024 05:30:52 EDT (-0400)
  Re: vaxis_rotate bug  
From: PoD
Date: 31 Dec 1998 12:14:01
Message: <368BB0CF.7D71@merlin.net.au>
Craig Shuck wrote:
> 
> The vector function   vaxis_rotate(A,B,F)  generates  "-nan"
> for x, y, and z if  B = <0,0,0>.  Modifying x,y, or z by adding
> a small amount ( .0001 ) is a partial work-around.
> 
> Attached is a simple reproduction.
> 
> If this isn't a bug, but just a mathematical "thing", I'm sorry to have
> taken your time.
> 
> Thanks!

The B is an axis around which to rotate the point eg. if B=<1,0,0> then
the point is rotated around the x axis. If it's <0,0,0>, then it does
not represent a proper axis, which way does the vector <0,0,0> point?

Cheers, PoD.


Post a reply to this message

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