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:07 EDT (-0400)
  Re: Test for vector <0,0,0>  
From: Kevin Jackson-Mead
Date: 2 Sep 2000 10:37:50
Message: <39B11043.1CA96F3B@mindspring.com>
I knew I was missing something.  That's what I get for trying to post on a
Saturday morning.  Man I feel like such a tool.

Kevin Jackson-Mead
http://www.mindspring.com/~jacksonmead

Chris Huff wrote:

> 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.