POV-Ray : Newsgroups : povray.general : Slightly faster VRand_On/In_Sphere() : Re: Slightly faster VRand_On/In_Sphere() Server Time
4 Aug 2024 02:18:41 EDT (-0400)
  Re: Slightly faster VRand_On/In_Sphere()  
From: Christopher James Huff
Date: 8 Nov 2003 12:49:14
Message: <cjameshuff-EDDF1A.12480208112003@netplex.aussie.org>
In article <3fac3188@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   (Btw, has anyone proven mathematically that the current official
> macros produce even distributions?)

Well, I've done empirical tests that seem to show that they do. And come 
up with another interesting fact: points on a sphere are uniformly 
distributed on each axis. Makes sense once you realize why (The 
boundaries of each slice subtend a greater angle as you near the edge of 
the sphere, where the radius is smaller. Any two slices through a sphere 
of the same thickness have the same surface area.), but a bit surprising 
to realize.

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