POV-Ray : Newsgroups : povray.advanced-users : Math question : Re: Math question Server Time
2 Nov 2024 05:19:52 EDT (-0400)
  Re: Math question  
From: Peter Popov
Date: 10 May 2000 15:45:20
Message: <sqejhso8m5hqbugjhcpgsru1jiipjgf2vv@4ax.com>
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

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