POV-Ray : Newsgroups : povray.general : Test for vector <0,0,0> : Re: Test for vector <0,0,0> Server Time
9 Aug 2024 01:22:38 EDT (-0400)
  Re: Test for vector <0,0,0>  
From: Chris Huff
Date: 2 Sep 2000 10:35:33
Message: <chrishuff-A3FA04.09371002092000@news.povray.org>
In article <39B10CF1.42249F5C@mindspring.com>, Kevin Jackson-Mead 
<jac### [at] mindspringcom> wrote:

> Maybe I'm missing something here, but this isn't going to work.  All 
> you're doing is adding up the vector components.  Yes, it will be 
> true for the zero vector, but it will also be true for vectors like 
> <2, -2, 0> and <3, 2, -5>, etc.

Wrong. The vector < 2,-2, 0> will add up to 4, and < 3, 2,-5> will add 
up to 10. That is what the abs() function is for, it gets the absolute 
value of the number.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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