POV-Ray : Newsgroups : povray.advanced-users : My first grass. : Re: My first grass. Server Time
29 Jul 2024 12:25:13 EDT (-0400)
  Re: My first grass.  
From: Christopher James Huff
Date: 8 Oct 2002 10:28:46
Message: <chrishuff-743246.10251008102002@netplex.aussie.org>
In article <3da2a000$1@news.povray.org>,
 "Tom Melly" <tom### [at] tomandlucouk> wrote:

> Well, exactly (I think). BTW, what is the normalised vector of <1,1,1>? Oh, 
> hang
> on, there must be a function for that....
> 
> #debug vstr(3, vnormalize(<1,1,1>), ", ",2,5)


The normalized vector is < x, y, z>/sqrt(x*x + y*y + z*z), so the result 
is < 1, 1, 1>/sqrt(3). This can't be perfectly represented in decimal or 
binary form, so you will get a lot of decimals from that #debug 
statement. You probably don't need to know this unless you are trying to 
simplify algebraic expressions.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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