|
![](/i/fill.gif) |
In article <3da2a000$1@news.povray.org>,
"Tom Melly" <tom### [at] tomandlu co uk> 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] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |