|
|
In article <3714a7c6.0@news.povray.org> , "Daniele Varrazzo" <piro at
officine dot it> wrote:
> vnormalize (<0, 0, 0>) isn't matematically defined... but POV-Ray 3.1a
> (windows) returns a "perfectly valid" <nan, nan, nan> vector... it's a sin
> that there isn't any IsNan() function or something like that to recognize
> it.
There is!
#declare myvector = <0,0,0>
#if((myvector.x == 0) && (myvector.y == 0) && (myvector.z == 0))
#error "Error"
#endif
Thorsten
Post a reply to this message
|
|