On 10 May 2000 06:44:41 -0400, Warp <war### [at] tagpovrayorg> wrote:
> // supposing that 'Direction' actually is a unit vector
Or if it's not:
#macro Dist(RayOrigin, Direction, Point)
#local Dir=vnormalize(Direction);
((Point.x-RayOrigin.x)/Dir.x)
#end
Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG e-mail : pet### [at] tagpovrayorg
Post a reply to this message
|